diff options
| author | Rapptz <[email protected]> | 2020-08-10 06:28:36 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:20:35 -0400 |
| commit | 0b93fa3a82e8b1b1d9f637e7be0333efd0a232b2 (patch) | |
| tree | ac2beaa72be9a4f47d4a7e1cff6e251db417b61b /discord/shard.py | |
| parent | Fix and add documentation (diff) | |
| download | discord.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.py | 1 |
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): |