Skip to content

Please help me get_member() error. #6285

Answered by 15696
ins3821 asked this question in General
Discussion options

You must be logged in to vote

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:

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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ins3821
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ins3821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants