Reply with stringified CommandError on CommandError

This commit is contained in:
ekzyis 2021-09-25 02:41:53 +02:00
parent d14b40d9f7
commit a27733675e
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ class ErrorHandler(commands.Cog):
message = "You are missing the required permissions to run this command!"
elif isinstance(error, commands.UserInputError):
message = "Something about your input was wrong, please check your input and try again!"
elif isinstance(error, commands.CommandError):
message = str(error)
else:
message = "Oh no! Something went wrong while running the command!"