diff options
| author | khazhyk <[email protected]> | 2018-06-30 23:26:33 -0700 |
|---|---|---|
| committer | khazhyk <[email protected]> | 2018-06-30 23:26:33 -0700 |
| commit | 9d301f7cae9ef20aaf0c4f081ca181539d9a6624 (patch) | |
| tree | f790bf8bab2ef27c40cf555293687268420c4cb2 | |
| parent | Fix __aiter__ compatibility with 3.7. (diff) | |
| download | discord.py-9d301f7cae9ef20aaf0c4f081ca181539d9a6624.tar.xz discord.py-9d301f7cae9ef20aaf0c4f081ca181539d9a6624.zip | |
Store guild, unavailable tuple in ready as well
This should fix userbots.
Fixes: 74380cd ("don't drop guild_available/join before ready")
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py index 648d9b53..df364296 100644 --- a/discord/state.py +++ b/discord/state.py @@ -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: |