mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Core] Send message on command cooldown (#611)
This commit is contained in:
parent
08496d0793
commit
e6fe686d1b
2
red.py
2
red.py
@ -372,6 +372,8 @@ def initialize(bot_class=Bot, formatter_class=Formatter):
|
|||||||
elif isinstance(error, commands.NoPrivateMessage):
|
elif isinstance(error, commands.NoPrivateMessage):
|
||||||
await bot.send_message(channel, "That command is not "
|
await bot.send_message(channel, "That command is not "
|
||||||
"available in DMs.")
|
"available in DMs.")
|
||||||
|
elif isinstance(error, commands.CommandOnCooldown):
|
||||||
|
await bot.send_message(channel, error)
|
||||||
else:
|
else:
|
||||||
bot.logger.exception(type(error).__name__, exc_info=error)
|
bot.logger.exception(type(error).__name__, exc_info=error)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user