aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-08 03:46:43 -0500
committerRapptz <[email protected]>2017-01-08 03:46:43 -0500
commit4bd8382e0635a240d1a76e6eb601728d91871f45 (patch)
treeb79fd0d5b33ccfef044f39ff271859e34b94e166
parentRemove extraneous prints. (diff)
downloaddiscord.py-4bd8382e0635a240d1a76e6eb601728d91871f45.tar.xz
discord.py-4bd8382e0635a240d1a76e6eb601728d91871f45.zip
Fix bug that caused Guild instances to be in VoiceChannel.voice_members
-rw-r--r--discord/guild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 841e5167..7033bff6 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -179,7 +179,7 @@ class Guild(Hashable):
finally:
# we switched channels
if channel is not None:
- channel.voice_members.append(self)
+ channel.voice_members.append(member)
return member, before, after