From c37e940e8684b3bdf0d1891dcd0d6a16ecb50663 Mon Sep 17 00:00:00 2001 From: Benjamyn Date: Thu, 27 Aug 2026 17:01:51 +1000 Subject: [PATCH] fix: remove await from bot.process_commands() call bot.process_commands() is a synchronous function that returns None, not a coroutine. Using 'await' on it is incorrect and causes the command dispatch to be silently ignored. The fix is to call bot.process_commands(message) without await, which allows prefix commands (like !join) to be properly dispatched to their @bot.command() handlers. --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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