Getting None in message.guild.get_member_named(“member_name”)
问题 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. 回答1: First, make sure your bot has members intent enabled in the developer portal Enable intents in the code, and pass them in your bot/client with the intents kwarg. intents = discord.Intents.default() intents.members = True client = commands.Bot(command_prefix='!', intents=intents) I will update the question if the way you setup your bot is