Help, I made a simple code but I get the error:
Traceback (most recent call last):
File "main.py", line 3, in <module>
bot = EasyBot()
TypeError: Client.__init__() missing 1 required keyword-only argument: 'intents'
Help, I made a simple code but I get the error:
Traceback (most recent call last):
File "main.py", line 3, in <module>
bot = EasyBot()
TypeError: Client.__init__() missing 1 required keyword-only argument: 'intents'
Hello and welcome to Ask @tobiashola!
All discord bots now require Intents
to be passed to them when created, for example:
client = discord.Client(intents=32767)
As a note, you should not use this in production, as this states that your bot requires all permissions/intents, but it could be used while you’re setting up your bot.
Here is a link to an intent calculator, so you don’t have to use all of the intents.
Upon further inspection, I don’t know how you would specify this to the package you are using, that package is likely incompatible with intents. I’d recommend just using the normal discord package, as that way I can guarantee that my solution will work.
You could also just use the API wrapper instead of calculating the numbers yourself, eg. Intents.default()
Thank you very much for answering me, as I said earlier I am new to this world and I only came to make a bot for a server, and with sinceriad I tell you that I do not know where to get the discord package thank you very much