You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because of a recent update in discord where bots now require intents to be enabled in order for commands to work in servers. There are two things you need to do to fix this:
After command_prefix='/', and before the parentheses, add the following: ,intents=discord.Intents.all()
I tried to run my code but this error comes up
Traceback (most recent call last):
File "C:\Users\Tom\Downloads\music_bot-main\main.py", line 9, in
bot = commands.Bot(command_prefix='/')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'
The text was updated successfully, but these errors were encountered: