diff --git a/src/main.py b/src/main.py index 455f2e4..603e1a9 100644 --- a/src/main.py +++ b/src/main.py @@ -20,6 +20,11 @@ class Bot(commands.Bot): # print(f"{message.author.name}: {message.content}") await self.handle_commands(message) # Let the bot know we want to handle and invoke our commands + + async def event_command_error(self, _, error): + if isinstance(error, commands.errors.CommandNotFound): # Ignore unknown commands (useful because custom commands aren’t known) + return + raise error client = Bot()