From 5f3e61f4f2669c0a83dedb274c38395ced30f693 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Mon, 19 Jul 2021 13:29:56 -0600 Subject: [PATCH] Change command error messages to be hidden (if available) --- jarvis/cogs/error.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jarvis/cogs/error.py b/jarvis/cogs/error.py index 582ba0b..615dda5 100644 --- a/jarvis/cogs/error.py +++ b/jarvis/cogs/error.py @@ -21,11 +21,13 @@ class ErrorHandlerCog(commands.Cog): if isinstance(error, commands.errors.MissingPermissions) or isinstance( 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): return else: - await ctx.send(f"Error processing command:\n```{error}```") + await ctx.send( + f"Error processing command:\n```{error}```", hidden=True + ) def setup(bot):