Open AGithubUs opened 1 year ago
ok
maybe you can do something like this.
intents
= discord.Intents.default()
intents.members
= True
#used to let the bot to get info about the user
intents.message_content
= True
#lets the bot read the message contents
bot
= commands.Bot(command_prefix=config.BOT_PREFIX,intents=intents, pm_help=True, case_insensitive=True)
this has worked so far for me.
line 13, in
bot = commands.Bot(command_prefix=config.BOT_PREFIX,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001C3362CA3D0>