aboutsummaryrefslogtreecommitdiff
path: root/discord/shard.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-08-10 06:28:36 -0400
committerRapptz <[email protected]>2020-09-23 03:20:35 -0400
commit0b93fa3a82e8b1b1d9f637e7be0333efd0a232b2 (patch)
treeac2beaa72be9a4f47d4a7e1cff6e251db417b61b /discord/shard.py
parentFix and add documentation (diff)
downloaddiscord.py-0b93fa3a82e8b1b1d9f637e7be0333efd0a232b2.tar.xz
discord.py-0b93fa3a82e8b1b1d9f637e7be0333efd0a232b2.zip
Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without relying on internal events or tricks.
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 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):