diff options
| author | Rapptz <[email protected]> | 2016-07-21 22:09:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-21 22:09:38 -0400 |
| commit | 0000b2576e8022dd98e75b88278bec90f996d02d (patch) | |
| tree | 50fed53ac5227ed81ae020541669169862386222 | |
| parent | Add AppInfo.owner attribute. (diff) | |
| download | discord.py-0000b2576e8022dd98e75b88278bec90f996d02d.tar.xz discord.py-0000b2576e8022dd98e75b88278bec90f996d02d.zip | |
Fix SyntaxError in constructing VoiceState for Python 3.4
Generalised unpacking is 3.5 only.
| -rw-r--r-- | discord/calls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/calls.py b/discord/calls.py index 564344fd..40df55ac 100644 --- a/discord/calls.py +++ b/discord/calls.py @@ -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): |