mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Delete cooldown messages when expired (#2469)
This commit is contained in:
parent
301c800319
commit
82cda4b57a
@ -236,7 +236,8 @@ def init_events(bot, cli_flags):
|
||||
await ctx.send(
|
||||
"This command is on cooldown. Try again in {}.".format(
|
||||
humanize_timedelta(seconds=error.retry_after)
|
||||
)
|
||||
),
|
||||
delete_after=error.retry_after,
|
||||
)
|
||||
else:
|
||||
log.exception(type(error).__name__, exc_info=error)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user