🛑 Added reacting error to on_error()

This commit is contained in:
NikolajDanger
2021-04-04 14:14:53 +02:00
parent 01c5451da3
commit 75e90d4166

View File

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