-
Beta Was this translation helpful? Give feedback.
Answered by
15696
Jan 10, 2021
Replies: 2 comments 1 reply
-
Could you provide more information please? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Do you have the members intent enabled? intents = discord.Intents.default() # turn on the non-privileged intents
intents.members = True # subscribe to the members intent
bot = commands.Bot(..., intents=intents) # pass the intents to the bot constructor |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ins3821
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have the members intent enabled?
Guild.get_member
will return None since the member is not cached because of the members intent. To fix that, you should do something like this: