aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py
index b60e38d2..1b20f5fe 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -340,10 +340,14 @@ class Client:
if event == 'VOICE_STATE_UPDATE':
user_id = data.get('user_id')
if user_id == self.user.id:
+ if self.is_voice_connected():
+ self.voice.channel = self.get_channel(data.get('channel_id'))
+
self.session_id = data.get('session_id')
log.debug('Session ID found: {}'.format(self.session_id))
self._session_id_found.set()
+
if event == 'VOICE_SERVER_UPDATE':
self._voice_data_found.data = data
log.debug('Voice connection data found: {}'.format(data))