From 592cc585890279331184feeb147ddfbecc7fe9f3 Mon Sep 17 00:00:00 2001 From: imp <106537315+imptype@users.noreply.github.com> Date: Tue, 2 Sep 2025 17:41:25 +0100 Subject: [PATCH] Use loop.create_future() --- discord/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/http.py b/discord/http.py index a58b60513..f35bf6862 100644 --- a/discord/http.py +++ b/discord/http.py @@ -453,7 +453,7 @@ class Ratelimit: # for up to 3 seconds instead of using aiohttp's default 5 min timeout. if not self.reset_at and (not self._last_request or self.http.loop.time() - self._last_request < 3): try: - self._future = asyncio.Future() + self._future = self.http.loop.create_future() await asyncio.wait_for(self._future, 3) except asyncio.TimeoutError: fmt = 'Initial request for rate limit bucket (%s) never finished. Skipping.'