Ensure large guilds are properly appended to the ready state guild list

This commit is contained in:
Bryan Forbes 2018-08-25 14:49:25 -05:00 committed by Rapptz
parent b3bfec9119
commit b6824c073e

View File

@ -968,7 +968,7 @@ class AutoShardedConnectionState(ConnectionState):
for guild_data in data['guilds']:
guild = self._add_guild_from_data(guild_data)
if guild.large:
guilds.append(guild)
guilds.append((guild, guild.unavailable))
for pm in data.get('private_channels', []):
factory, _ = _channel_factory(pm['type'])