mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Only remove if the user is actually in the voice channel.
This commit is contained in:
parent
1080941e5e
commit
c4f7664bd9
@ -95,7 +95,7 @@ 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:
|
||||
elif old_channel is not None and self.voice_channel is None and self in old_channel:
|
||||
# we left a channel
|
||||
old_channel.voice_members.remove(self)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user