aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-02-23 05:38:35 -0500
committerRapptz <[email protected]>2019-02-23 05:38:35 -0500
commit04ee10adc4f2d2957685b616ce4af2bc0bd43e22 (patch)
tree79e6f9ddee1d91453099f34547eb737c9f951090
parent[commands] Copy on_error handlers in Command.copy (diff)
downloaddiscord.py-04ee10adc4f2d2957685b616ce4af2bc0bd43e22.tar.xz
discord.py-04ee10adc4f2d2957685b616ce4af2bc0bd43e22.zip
[commands] Fix bug with local checks and cooldowns not applying.
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 782b19ab..b980b92f 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: