Fix SyntaxError in constructing VoiceState for Python 3.4

Generalised unpacking is 3.5 only.
This commit is contained in:
Rapptz 2016-07-21 22:09:38 -04:00
parent b0f5584961
commit 0000b2576e

View File

@ -117,7 +117,8 @@ class GroupCall:
if data['channel_id'] is None:
self._voice_states.pop(user_id, None)
else:
self._voice_states[user_id] = VoiceState(**data, voice_channel=self.channel)
data['voice_channel'] = self.channel
self._voice_states[user_id] = VoiceState(**data)
@property
def connected(self):