diff options
| author | Rapptz <[email protected]> | 2016-07-22 18:37:23 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-22 18:37:23 -0400 |
| commit | 1a186c5a55a9248d67c41c4552c4fc1688311899 (patch) | |
| tree | 2c6a90821ce196492dd9282ba7346b65a8b37b62 | |
| parent | Remove unused internal code in Member. (diff) | |
| download | discord.py-1a186c5a55a9248d67c41c4552c4fc1688311899.tar.xz discord.py-1a186c5a55a9248d67c41c4552c4fc1688311899.zip | |
[commands] Fix cooldown decorator to work regardless of order.
| -rw-r--r-- | discord/ext/commands/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 8303181b..b6073b76 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -896,7 +896,7 @@ def cooldown(rate, per, type=BucketType.default): def decorator(func): if isinstance(func, Command): - func.cooldown = Cooldown(rate, per, type) + func._buckets = CooldownMapping(Cooldown(rate, per, type)) else: func.__commands_cooldown__ = Cooldown(rate, per, type) return func |