diff options
| author | Rapptz <[email protected]> | 2021-07-04 03:05:06 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-04 03:05:06 -0400 |
| commit | d047cebc3599a00e8598e873cc7225d9af96d4c7 (patch) | |
| tree | 1242c63bc955c03011eb5223bcac78e7f54b0e63 /discord/ext | |
| parent | Mention ephemeral messages can only be edited with raw method (diff) | |
| download | discord.py-d047cebc3599a00e8598e873cc7225d9af96d4c7.tar.xz discord.py-d047cebc3599a00e8598e873cc7225d9af96d4c7.zip | |
[commands] Remove window reassignment when tokens reach 0
Diffstat (limited to 'discord/ext')
| -rw-r--r-- | discord/ext/commands/cooldowns.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/discord/ext/commands/cooldowns.py b/discord/ext/commands/cooldowns.py index fe9930e1..6092909b 100644 --- a/discord/ext/commands/cooldowns.py +++ b/discord/ext/commands/cooldowns.py @@ -115,11 +115,6 @@ class Cooldown: # we're not so decrement our tokens self._tokens -= 1 - # see if we got rate limited due to this token change, and if - # so update the window to point to our current time frame - if self._tokens == 0: - self._window = current - def reset(self): self._tokens = self.rate self._last = 0.0 |