From ec43caeb1e81e104760ed635d1190873968cfa6f Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Thu, 22 Jul 2021 09:12:48 -0600 Subject: [PATCH] Clearer error message on cooldown --- jarvis/cogs/error.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jarvis/cogs/error.py b/jarvis/cogs/error.py index bb552fb..f9bbbfb 100644 --- a/jarvis/cogs/error.py +++ b/jarvis/cogs/error.py @@ -12,7 +12,10 @@ class ErrorHandlerCog(commands.Cog): elif isinstance(error, commands.errors.CommandNotFound): return elif isinstance(error, commands.errors.CommandOnCooldown): - await ctx.send("Please wait before trying again") + await ctx.send( + "Command on cooldown. Please wait before trying again", + hidden=True, + ) else: await ctx.send(f"Error processing command:\n```{error}```") @@ -25,7 +28,10 @@ class ErrorHandlerCog(commands.Cog): elif isinstance(error, commands.errors.CommandNotFound): return elif isinstance(error, commands.errors.CommandOnCooldown): - await ctx.send("Please wait before trying again") + await ctx.send( + "Command on cooldown. Please wait before trying again", + hidden=True, + ) else: await ctx.send( f"Error processing command:\n```{error}```", hidden=True