diff options
author | 2019-12-12 21:08:08 +1000 | |
---|---|---|
committer | 2019-12-12 21:08:08 +1000 | |
commit | 631c89e84fa233bba30af29df5d9e98793a79a65 (patch) | |
tree | 5def97a2bca3c4ec6173df2be4bbaaed043ec136 | |
parent | Add exc_info to log.exception to display traceback. (diff) |
Auto-delete channel check error after a period of time.
-rw-r--r-- | bot/seasons/evergreen/error_handler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/error_handler.py b/bot/seasons/evergreen/error_handler.py index 8e7cc8d3..0d8bb0bb 100644 --- a/bot/seasons/evergreen/error_handler.py +++ b/bot/seasons/evergreen/error_handler.py @@ -56,7 +56,7 @@ class CommandErrorHandler(commands.Cog): return if isinstance(error, InChannelCheckFailure): - await ctx.send(embed=self.error_embed(str(error), NEGATIVE_REPLIES)) + await ctx.send(embed=self.error_embed(str(error), NEGATIVE_REPLIES), delete_after=7.5) return if isinstance(error, commands.UserInputError): @@ -73,7 +73,7 @@ class CommandErrorHandler(commands.Cog): f"This command is on cooldown:\nPlease retry in {mins} minutes {secs} seconds.", NEGATIVE_REPLIES ) - await ctx.send(embed=embed) + await ctx.send(embed=embed, delete_after=7.5) return if isinstance(error, commands.DisabledCommand): |