mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Update voice client main ws references when reconnecting.
This commit is contained in:
1 parent
e0a91df32b
commit
8638ff4414
2 files changed
+6
No files matched your search
@@ -107,6 +107,10 @@ class ConnectionState:
|
||||
def _remove_voice_client(self, guild_id):
|
||||
self._voice_clients.pop(guild_id, None)
|
||||
|
||||
def _update_references(self, ws):
|
||||
for vc in self.voice_clients:
|
||||
vc.main_ws = ws
|
||||
|
||||
@property
|
||||
def servers(self):
|
||||
return self._servers.values()
|
||||
|
||||
Reference in new issue
Block a user