From 0b93fa3a82e8b1b1d9f637e7be0333efd0a232b2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 10 Aug 2020 06:28:36 -0400 Subject: Implement VoiceProtocol lower level hooks. This allows changing the connect flow and taking control of it without relying on internal events or tricks. --- 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 f6320678..ef29d590 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -292,6 +292,7 @@ class AutoShardedClient(Client): # the key is the shard_id self.__shards = {} self._connection._get_websocket = self._get_websocket + self._connection._get_client = lambda: self self.__queue = asyncio.PriorityQueue() def _get_websocket(self, guild_id=None, *, shard_id=None): -- cgit v1.2.3