From e6fe686d1b76a93112aa4e7dc12d648891d22b7b Mon Sep 17 00:00:00 2001 From: PlanetTeamSpeak Date: Sun, 19 Feb 2017 15:48:03 +0100 Subject: [PATCH] [Core] Send message on command cooldown (#611) --- red.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/red.py b/red.py index 4cdcd20bb..477937cf6 100644 --- a/red.py +++ b/red.py @@ -372,6 +372,8 @@ def initialize(bot_class=Bot, formatter_class=Formatter): elif isinstance(error, commands.NoPrivateMessage): await bot.send_message(channel, "That command is not " "available in DMs.") + elif isinstance(error, commands.CommandOnCooldown): + await bot.send_message(channel, error) else: bot.logger.exception(type(error).__name__, exc_info=error)