[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:
|
try:
|
||||||
checks = func.__commands_checks__
|
checks = func.__commands_checks__
|
||||||
checks.reverse()
|
checks.reverse()
|
||||||
del func.__commands_checks__
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
checks = kwargs.get('checks', [])
|
checks = kwargs.get('checks', [])
|
||||||
finally:
|
finally:
|
||||||
@ -218,7 +217,6 @@ class Command(_BaseCommand):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
cooldown = func.__commands_cooldown__
|
cooldown = func.__commands_cooldown__
|
||||||
del func.__commands_cooldown__
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
cooldown = kwargs.get('cooldown')
|
cooldown = kwargs.get('cooldown')
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user