mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fix bug with member voice state update.
This commit is contained in:
@ -95,7 +95,8 @@ class Member(User):
|
||||
if old_channel is None and self.voice_channel is not None:
|
||||
# we joined a channel
|
||||
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
|
||||
old_channel.voice_members.remove(self)
|
||||
|
||||
|
Reference in New Issue
Block a user