Fix SyntaxError in constructing VoiceState for Python 3.4
Generalised unpacking is 3.5 only.
This commit is contained in:
parent
b0f5584961
commit
0000b2576e
@ -117,7 +117,8 @@ class GroupCall:
|
|||||||
if data['channel_id'] is None:
|
if data['channel_id'] is None:
|
||||||
self._voice_states.pop(user_id, None)
|
self._voice_states.pop(user_id, None)
|
||||||
else:
|
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
|
@property
|
||||||
def connected(self):
|
def connected(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user