diff --git a/main.py b/main.py index 725d98f..6450d4c 100644 --- a/main.py +++ b/main.py @@ -209,9 +209,9 @@ async def on_message(message: discord.Message) -> None: return # Call bot.process_commands() — this handles PREFIX COMMANDS - # It strips the prefix, finds the command, and invokes it. - # This is the CORRECT way to handle prefix commands in discord.py. - await bot.process_commands(message) + # IMPORTANT: DO NOT await this — it returns None, not a coroutine + # This is the official discord.py way to process prefix commands + bot.process_commands(message) @bot.event