Skip to content Skip to sidebar Skip to footer

Getting 'nonetype' Object Has No Attribute 'send'

getting the 'NoneType' object has no attribute 'send' what should I do?this error making my head blow up async def message(ctx, *, mymsg): role = discord.utils.get(ctx.guild.ro

Solution 1:

You require the Members Intent

You will have to enable it here. Select the application you want it on -> Select Bot -> SERVER MEMBERS INTENT and then make sure it shows blue next to it. Then click Save Changes. Since you are developing your bot you might want to enable Presence intent as well to save you time later.

You will then have to edit your bot variable like so:

intents = discord.Intents.default()
intents.members = True

client = commands.Bot(command_prefix=".", intents=intents)

Post a Comment for "Getting 'nonetype' Object Has No Attribute 'send'"