Open ghost opened 1 year ago
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:
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'