imp
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/http.py
|
@ -392,7 +392,7 @@ class Ratelimit: |
|
|
self.remaining = self.limit - self.outgoing |
|
|
self.remaining = self.limit - self.outgoing |
|
|
self.reset_at = 0.0 |
|
|
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 |
|
|
# Shared scope 429 has longer "reset_at", determined using the retry-after field |
|
|
limit = int(response.headers['X-Ratelimit-Limit']) |
|
|
limit = int(response.headers['X-Ratelimit-Limit']) |
|
|
if response.headers.get('X-RateLimit-Scope') == 'shared': |
|
|
if response.headers.get('X-RateLimit-Scope') == 'shared': |
|
|