Browse Source

Fix bug with member voice state update.

pull/24/head
Rapptz 10 years ago
parent
commit
2813652995
  1. 3
      discord/server.py

3
discord/server.py

@ -95,7 +95,8 @@ class Member(User):
if old_channel is None and self.voice_channel is not None: if old_channel is None and self.voice_channel is not None:
# we joined a channel # we joined a channel
self.voice_channel.voice_members.append(self) self.voice_channel.voice_members.append(self)
elif old_channel is not None and self.voice_channel is None and self in old_channel: elif old_channel is not None and self.voice_channel is None:
if self in old_channel.voice_members:
# we left a channel # we left a channel
old_channel.voice_members.remove(self) old_channel.voice_members.remove(self)

Loading…
Cancel
Save