aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-11-16 18:15:34 -0500
committerRapptz <[email protected]>2015-11-16 18:15:34 -0500
commit5ecaf1df4cc2cf9a182f4a5c206ea9b08b70a85b (patch)
tree0cceecb6d79d56363832b2ca0e2e89bec3c851b8
parentAttempt to fix unavailable guilds again (diff)
downloaddiscord.py-5ecaf1df4cc2cf9a182f4a5c206ea9b08b70a85b.tar.xz
discord.py-5ecaf1df4cc2cf9a182f4a5c206ea9b08b70a85b.zip
Make unavailable default to None.
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index f69aad97..9627adb7 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -333,7 +333,7 @@ class ConnectionState(object):
self.dispatch('member_update', member)
def handle_guild_create(self, data):
- unavailable = data.get('unavailable', False)
+ unavailable = data.get('unavailable')
if unavailable == False:
# GUILD_CREATE with unavailable in the response
# usually means that the server has become available