gateway.websocket: handle missing 'channels' on op 14

This commit is contained in:
Luna Mendes 2018-10-26 04:30:56 -03:00
parent 8888534580
commit f8e44d62bd
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ class GatewayWebsocket:
# make shard query
lazy_guilds = self.ext.dispatcher.backends['lazy_guild']
for chan_id, ranges in data['channels'].items():
for chan_id, ranges in data.get('channels', {}).items():
chan_id = int(chan_id)
member_list = await lazy_guilds.get_gml(chan_id)