We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc605d commit f71b47fCopy full SHA for f71b47f
discord/shard.py
@@ -221,7 +221,11 @@ async def reidentify(self, exc: ReconnectWebSocket) -> None:
221
async def reconnect(self) -> None:
222
self._cancel_task()
223
try:
224
- coro = DiscordWebSocket.from_client(self._client, shard_id=self.id)
+ coro = DiscordWebSocket.from_client(
225
+ self._client,
226
+ gateway=self.ws.resume_gateway_url,
227
+ shard_id=self.id,
228
+ )
229
self.ws = await asyncio.wait_for(coro, timeout=60.0)
230
except self._handled_exceptions as e:
231
await self._handle_disconnect(e)
0 commit comments