diff --git a/jarvis/cogs/dev.py b/jarvis/cogs/dev.py index 35fc6fe..8e56773 100644 --- a/jarvis/cogs/dev.py +++ b/jarvis/cogs/dev.py @@ -302,7 +302,10 @@ class DevCog(commands.Cog): @commands.Cog.listener() async def on_command_error(self, ctx, error): - await ctx.send(f"```{traceback.format_exc()}```") + if isinstance(error, commands.errors.MissingPermissions): + await ctx.send("I'm afraid I can't let you do that.") + else: + await ctx.send(f"Error processing command:\n```{error}```") def setup(bot):