Reply with stringified CommandError on CommandError
This commit is contained in:
parent
d14b40d9f7
commit
a27733675e
|
@ -15,6 +15,8 @@ class ErrorHandler(commands.Cog):
|
||||||
message = "You are missing the required permissions to run this command!"
|
message = "You are missing the required permissions to run this command!"
|
||||||
elif isinstance(error, commands.UserInputError):
|
elif isinstance(error, commands.UserInputError):
|
||||||
message = "Something about your input was wrong, please check your input and try again!"
|
message = "Something about your input was wrong, please check your input and try again!"
|
||||||
|
elif isinstance(error, commands.CommandError):
|
||||||
|
message = str(error)
|
||||||
else:
|
else:
|
||||||
message = "Oh no! Something went wrong while running the command!"
|
message = "Oh no! Something went wrong while running the command!"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue