Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit d047ceb

Browse files
committed
[commands] Remove window reassignment when tokens reach 0
1 parent c748e4b commit d047ceb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

discord/ext/commands/cooldowns.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ def update_rate_limit(self, current=None):
115115
# we're not so decrement our tokens
116116
self._tokens -= 1
117117

118-
# see if we got rate limited due to this token change, and if
119-
# so update the window to point to our current time frame
120-
if self._tokens == 0:
121-
self._window = current
122-
123118
def reset(self):
124119
self._tokens = self.rate
125120
self._last = 0.0

0 commit comments

Comments
 (0)