From 04ee10adc4f2d2957685b616ce4af2bc0bd43e22 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 23 Feb 2019 05:38:35 -0500 Subject: [PATCH] [commands] Fix bug with local checks and cooldowns not applying. --- discord/ext/commands/core.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 782b19ab0..b980b92ff 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -210,7 +210,6 @@ class Command(_BaseCommand): try: checks = func.__commands_checks__ checks.reverse() - del func.__commands_checks__ except AttributeError: checks = kwargs.get('checks', []) finally: @@ -218,7 +217,6 @@ class Command(_BaseCommand): try: cooldown = func.__commands_cooldown__ - del func.__commands_cooldown__ except AttributeError: cooldown = kwargs.get('cooldown') finally: