aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-01-28 23:56:46 -0500
committerRapptz <[email protected]>2020-01-28 23:56:46 -0500
commit5c7df3d943c899356a47960d23060c5f0e8db0f8 (patch)
treeef70071aa69431943f4dae1e42bd5dba62714e91 /discord/shard.py
parentVersion bump to v1.3.1 (diff)
downloaddiscord.py-5c7df3d943c899356a47960d23060c5f0e8db0f8.tar.xz
discord.py-5c7df3d943c899356a47960d23060c5f0e8db0f8.zip
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.
Diffstat (limited to 'discord/shard.py')
-rw-r--r--discord/shard.py1
1 files changed, 1 insertions, 0 deletions
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)