I started making this bot, and this is just a small info command with an embed. After I made a DM support system this command stopped working, can anyone notice anything wrong with it?
I tried to change a bit of the code that didn't work.
I started making this bot, and this is just a small info command with an embed. After I made a DM support system this command stopped working, can anyone notice anything wrong with it?
I tried to change a bit of the code that didn't work.
Overriding the default provided on_message
forbids any extra commands from running. To fix this, add a bot.process_commands(message)
line at the end of your on_message
. For example:
@bot.event
async def on_message(message):
# do some extra stuff here
await bot.process_commands(message)
The default on_message
contains a call to this coroutine, but when you override it with your own on_message
, you need to call it yourself.