From 75e90d4166c0885acba8d30605476843311bd883 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sun, 4 Apr 2021 14:14:53 +0200 Subject: [PATCH] :stop_sign: Added reacting error to on_error() --- utils/eventHandlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/eventHandlers.py b/utils/eventHandlers.py index 002107d..50bfbe2 100644 --- a/utils/eventHandlers.py +++ b/utils/eventHandlers.py @@ -28,6 +28,8 @@ class ErrorHandler(): async def on_slash_command_error(self, ctx, error): if isinstance(error, commands.CommandNotFound): await ctx.send("That's not a command (error code 001)") + elif isinstance(error, discord.errors.NotFound): + self.bot.log("Deleted message before I could add all reactions") elif isinstance(error, commands.errors.MissingRequiredArgument): self.bot.log(f"{error}",str(ctx.channel_id)) await ctx.send("Missing command parameters (error code 002). Try using `!help [command]` to find out how to use the command.")