diff options
| author | Rapptz <[email protected]> | 2015-10-16 20:11:29 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-16 20:11:29 -0400 |
| commit | c4f7664bd99ac888f15e42c4899baa9b86539844 (patch) | |
| tree | c7eedc7ef371d3bdfc5c818da99ee3a4053a41de | |
| parent | on_socket_response now handles non-op 0 websocket messages. (diff) | |
| download | discord.py-c4f7664bd99ac888f15e42c4899baa9b86539844.tar.xz discord.py-c4f7664bd99ac888f15e42c4899baa9b86539844.zip | |
Only remove if the user is actually in the voice channel.
| -rw-r--r-- | discord/server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/server.py b/discord/server.py index 62668bca..a50f0898 100644 --- a/discord/server.py +++ b/discord/server.py @@ -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) |