Replies: 1 comment 1 reply
-
I had a similar issue. As a workaround I created a discord.User object from a http request. resp = requests.get(f"https://discord.com/api/v9/users/{user_id}", headers={"Authorization": "TOKEN"})
user = discord.User(state=bot._connection, data=resp.json()) If you use this. I would recommend adding error handling to make sure it won't brick your script if the request goes wrong. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Returning None.
It worked for months but on a random day it stoped and returned None after it.
Beta Was this translation helpful? Give feedback.
All reactions