aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-18 20:08:25 -0500
committerRapptz <[email protected]>2015-12-18 20:08:25 -0500
commit8a4e2ba958157c447eb2b6cf71bab1a103862aa9 (patch)
tree77454388261bd2f7d63c8d9e11becad6e091b0c8
parentAdd first support for gateway redirects and reconnects. (diff)
downloaddiscord.py-8a4e2ba958157c447eb2b6cf71bab1a103862aa9.tar.xz
discord.py-8a4e2ba958157c447eb2b6cf71bab1a103862aa9.zip
Fix Client.replace_roles having hashable errors.
-rw-r--r--discord/client.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/discord/client.py b/discord/client.py
index 76c2d853..b5b822a9 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -472,7 +472,6 @@ class Client:
for member in server.members:
yield member
-
@asyncio.coroutine
def wait_for_message(self, timeout=None, *, author=None, channel=None, content=None, check=None):
"""|coro|
@@ -2089,7 +2088,7 @@ class Client:
Removing roles failed.
"""
new_roles = {role.id for role in member.roles}
- new_roles = new_roles.difference(roles)
+ new_roles = new_roles.difference(role.id for role in roles)
yield from self._replace_roles(member, *new_roles)
@asyncio.coroutine
@@ -2265,7 +2264,6 @@ class Client:
yield from utils._verify_successful_response(response)
yield from response.release()
-
# Voice management
@asyncio.coroutine
@@ -2339,7 +2337,6 @@ class Client:
yield from self.voice.connect()
return self.voice
-
def is_voice_connected(self):
"""bool : Indicates if we are currently connected to a voice channel."""
return self.voice is not None and self.voice.is_connected()