From 24fa0fa75dcb238687cbcf97c6bee6795579d262 Mon Sep 17 00:00:00 2001 From: imp <106537315+imptype@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:51:15 +0100 Subject: [PATCH] Fix whitespace --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index b6c754714..d2267a54b 100644 --- a/discord/http.py +++ b/discord/http.py @@ -394,7 +394,7 @@ class Ratelimit: def update(self, response: aiohttp.ClientResponse, data: Union[Dict[str, Any], str]) -> bool: limit = int(response.headers['X-Ratelimit-Limit']) reset_at = self.http.loop.time() + (float(response.headers['X-Ratelimit-Reset']) - time.time()) - + # Shared scope (which only appears on 429s) could have a longer "reset_at". if response.headers.get('X-RateLimit-Scope') == 'shared': reset_at = max(reset_at, self.http.loop.time() + data['retry_after']) # type: ignore