mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Store guild, unavailable tuple in ready as well
This should fix userbots. Fixes: 74380cd ("don't drop guild_available/join before ready")
This commit is contained in:
parent
983be10111
commit
9d301f7cae
@ -325,7 +325,7 @@ class ConnectionState:
|
||||
for guild_data in data['guilds']:
|
||||
guild = self._add_guild_from_data(guild_data)
|
||||
if (not self.is_bot and not guild.unavailable) or guild.large:
|
||||
guilds.append(guild)
|
||||
guilds.append((guild, guild.unavailable))
|
||||
|
||||
for relationship in data.get('relationships', []):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user