intent = discord.Intents(messages=True,members = True, guilds=True)
bot = commands.Bot(command_prefix = '-',intent = intent)
print(intent.members)
print(bot.intents.members)
Both prints displaying True, bot intent.members be set to true and my bot being able to use functions like guild.chunk()
True
False
The Bot is ready.
Ignoring exception in command ajuda:
Traceback (most recent call last):
File "C:\Users\jpdeo.virtualenvs\JboTSeries-_H1W6chR\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(args, *kwargs)
File "C:/JboTSeries/discord_files/bot.py", line 30, in ajuda
print(len(await ctx.guild.chunk()))
File "C:\Users\jpdeo.virtualenvs\JboTSeries-_H1W6chR\lib\site-packages\discord\guild.py", line 2073, in chunk
raise ClientException('Intents.members must be enabled to use this.')
discord.errors.ClientException: Intents.members must be enabled to use this.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\jpdeo.virtualenvs\JboTSeries-_H1W6chR\lib\site-packages\discord\ext\commands\bot.py", line 903, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\jpdeo.virtualenvs\JboTSeries-_H1W6chR\lib\site-packages\discord\ext\commands\core.py", line 859, in invoke
await injected(ctx.args, *ctx.kwargs)
File "C:\Users\jpdeo.virtualenvs\JboTSeries-_H1W6chR\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: ClientException: Intents.members must be enabled to use this.
intent = discord.Intents(messages=True,members = True, guilds=True)
bot = commands.Bot(command_prefix = '-',intent = intent)
The kwarg is called intents not intent.
Omg im so dumb lol, thanks for the reply
Most helpful comment
The kwarg is called
intentsnotintent.