Skip to content
← Back to Community
bot.remove_command not working in discord.py
Profile icon
isaiah08

I'm using this tutorial.
If you go to maincommands.py, you can see on line 5 that i removed the built in command hello:
bot.remove_command('hello')
So why does it still show an error for it?

Answered by xfinnbar [earned 5 cycles]
View Answer
Voters
Profile icon
isaiah08
Comments
hotnewtop
Profile icon
xfinnbar

You need to put it after the command is defined. I recommend you put it before bot.run()

Profile icon
isaiah08

Thanks, but now i'm getting a different error. What's wrong? @xfinnbar

Profile icon
Coder100

you need to set a valid discord token on line 7 lol @isaiah08

Profile icon
isaiah08

Thanks! @Coder100