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.")