Change command error messages to be hidden (if available)
This commit is contained in:
parent
dd88f7fbee
commit
5f3e61f4f2
1 changed files with 4 additions and 2 deletions
|
@ -21,11 +21,13 @@ class ErrorHandlerCog(commands.Cog):
|
||||||
if isinstance(error, commands.errors.MissingPermissions) or isinstance(
|
if isinstance(error, commands.errors.MissingPermissions) or isinstance(
|
||||||
error, commands.errors.CheckFailure
|
error, commands.errors.CheckFailure
|
||||||
):
|
):
|
||||||
await ctx.send("I'm afraid I can't let you do that.")
|
await ctx.send("I'm afraid I can't let you do that.", hidden=True)
|
||||||
elif isinstance(error, commands.errors.CommandNotFound):
|
elif isinstance(error, commands.errors.CommandNotFound):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
await ctx.send(f"Error processing command:\n```{error}```")
|
await ctx.send(
|
||||||
|
f"Error processing command:\n```{error}```", hidden=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
|
Loading…
Add table
Reference in a new issue