mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
[commands] Fix bug with local checks and cooldowns not applying.
This commit is contained in:
parent
ac6e55353a
commit
04ee10adc4
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user