Browse Source

Update voice channel if we move to different channels.

pull/95/head
Rapptz 9 years ago
parent
commit
8de55fa203
  1. 4
      discord/client.py

4
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))

Loading…
Cancel
Save