Clearer error message on cooldown
This commit is contained in:
parent
48237b74d7
commit
ec43caeb1e
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue