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:
parent
3d70966021
commit
5ecaf1df4c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user