Separately delay ready event for each shard

This commit is contained in:
Lilly Rose Berner
2022-04-25 08:01:46 +02:00
committed by GitHub
parent 89eb86ecdc
commit 2dbf14bb72
5 changed files with 86 additions and 89 deletions

View File

@ -423,8 +423,6 @@ class AutoShardedClient(Client):
initial = shard_id == shard_ids[0]
await self.launch_shard(gateway, shard_id, initial=initial)
self._connection.shards_launched.set()
async def _async_setup_hook(self) -> None:
await super()._async_setup_hook()
self.__queue = asyncio.PriorityQueue()