🛑 Added reacting error to on_error()
This commit is contained in:
@ -28,6 +28,8 @@ class ErrorHandler():
|
|||||||
async def on_slash_command_error(self, ctx, error):
|
async def on_slash_command_error(self, ctx, error):
|
||||||
if isinstance(error, commands.CommandNotFound):
|
if isinstance(error, commands.CommandNotFound):
|
||||||
await ctx.send("That's not a command (error code 001)")
|
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):
|
elif isinstance(error, commands.errors.MissingRequiredArgument):
|
||||||
self.bot.log(f"{error}",str(ctx.channel_id))
|
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.")
|
await ctx.send("Missing command parameters (error code 002). Try using `!help [command]` to find out how to use the command.")
|
||||||
|
Reference in New Issue
Block a user