From 5c7df3d943c899356a47960d23060c5f0e8db0f8 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 28 Jan 2020 23:56:46 -0500 Subject: Bump waiting time of GUILD_CREATE stream by number of shards waited. 2 seconds might be too short and cause it to finish waiting while other shards are still IDENTIFYing. --- discord/shard.py | 1 + 1 file changed, 1 insertion(+) (limited to 'discord/shard.py') diff --git a/discord/shard.py b/discord/shard.py index 237e50e5..53c09c0d 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -251,6 +251,7 @@ class AutoShardedClient(Client): self._connection.shard_count = self.shard_count shard_ids = self.shard_ids if self.shard_ids else range(self.shard_count) + self._connection.shard_ids = shard_ids for shard_id in shard_ids: await self.launch_shard(gateway, shard_id) -- cgit v1.2.3