diff --git a/main.py b/main.py index 6450d4c..0d68294 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 - # 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) + # Note: In discord.py 2.7.x, process_commands() is a coroutine + # and MUST be awaited. + await bot.process_commands(message) @bot.event