diff --git a/discord/http.py b/discord/http.py index 6693817f6..ddae63890 100644 --- a/discord/http.py +++ b/discord/http.py @@ -392,7 +392,7 @@ class Ratelimit: self.remaining = self.limit - self.outgoing self.reset_at = 0.0 - def update(self, response: aiohttp.ClientResponse, data: Union[Dict[str, Any], str]) -> bool: + def update(self, response: aiohttp.ClientResponse, data: Union[Dict[str, Any], str]) -> bool: # Shared scope 429 has longer "reset_at", determined using the retry-after field limit = int(response.headers['X-Ratelimit-Limit']) if response.headers.get('X-RateLimit-Scope') == 'shared':