-1

Image of my code

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.

Morgan
  • 11
  • 2

1 Answers1

0

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.

Morgan
  • 11
  • 2