1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 18:59:09 +00:00

Make unavailable default to None.

This commit is contained in:
Rapptz 2015-11-16 18:15:34 -05:00
parent 3d70966021
commit 5ecaf1df4c

@ -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