I'm getting NoneType in message.guild.get_member_named("Testing Account") and there is a person/account named Testing Account in the discord server.
message.guild.get_member_named("Testing Account")
First, make sure your bot has members intent enabled in the developer portal
members
Enable intents in the code, and pass them in your bot/client with the intents kwarg.
intents
intents = discord.Intents.default() intents.members = True client = commands.Bot(command_prefix='!', intents=intents)
"If your bot tracks presence data, you may need the presence intent to receive presence event data." - Discord Developer Portal
You can find more about intents or privileged intents at Privileged Intents - Discord & A Primer to Gateway Intents - Discord.py
1.4m articles
1.4m replys
5 comments
57.0k users