Make unavailable default to None.

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

View File

@ -333,7 +333,7 @@ class ConnectionState(object):
self.dispatch('member_update', member) self.dispatch('member_update', member)
def handle_guild_create(self, data): def handle_guild_create(self, data):
unavailable = data.get('unavailable', False) unavailable = data.get('unavailable')
if unavailable == False: if unavailable == False:
# GUILD_CREATE with unavailable in the response # GUILD_CREATE with unavailable in the response
# usually means that the server has become available # usually means that the server has become available