From deb11a703858dfbc622b15327efd710de1bac472 Mon Sep 17 00:00:00 2001 From: imp <106537315+imptype@users.noreply.github.com> Date: Mon, 1 Sep 2025 02:06:37 +0100 Subject: [PATCH] Fix bucket key format --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index cedb4fdb6..b08a1c7f8 100644 --- a/discord/http.py +++ b/discord/http.py @@ -673,7 +673,7 @@ class HTTPClient: fmt = '%s has found its initial rate limit bucket hash (%s).' _log.debug(fmt, route_key, new_bucket_hash) self._bucket_hashes[route_key] = new_bucket_hash - ratelimit.key = new_bucket_hash + route.major_parameters + ratelimit.key = f'{new_bucket_hash}:{route.major_parameters}' self._buckets[ratelimit.key] = ratelimit # Global rate limit 429 wont have ratelimit headers (also can't tell if it's one-shot)