From a27733675e49cd4776bdbc2b15f44383b89fcc44 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 25 Sep 2021 02:41:53 +0200 Subject: [PATCH] Reply with stringified CommandError on CommandError --- src/error.py | 2 ++ 1 file changed, 2 insertions(+) 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!"