[commands] Fix bug with local checks and cooldowns not applying.

This commit is contained in:
Rapptz 2019-02-23 05:38:35 -05:00
parent ac6e55353a
commit 04ee10adc4

View File

@ -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: