mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without relying on internal events or tricks.
This commit is contained in:
1 parent
93fa46713a
commit
0b93fa3a82
9 files changed
+230
-106
No files matched your search
+5
-1
@@ -238,6 +238,7 @@ class Client:
|
||||
self._closed = False
|
||||
self._ready = asyncio.Event()
|
||||
self._connection._get_websocket = self._get_websocket
|
||||
self._connection._get_client = lambda: self
|
||||
|
||||
if VoiceClient.warn_nacl:
|
||||
VoiceClient.warn_nacl = False
|
||||
@@ -299,7 +300,10 @@ class Client:
|
||||
|
||||
@property
|
||||
def voice_clients(self):
|
||||
"""List[:class:`.VoiceClient`]: Represents a list of voice connections."""
|
||||
"""List[:class:`.VoiceProtocol`]: Represents a list of voice connections.
|
||||
|
||||
These are usually :class:`.VoiceClient` instances.
|
||||
"""
|
||||
return self._connection.voice_clients
|
||||
|
||||
def is_ready(self):
|
||||
|
||||
Reference in new issue
Block a user