diff --git a/src/error.py b/src/error.py index 2b4b457..7f1009e 100644 --- a/src/error.py +++ b/src/error.py @@ -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!"