diff options
| author | Rapptz <[email protected]> | 2020-09-28 05:39:13 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-28 05:39:13 -0400 |
| commit | bf42cf72326a6fd6b64c697506be04c46acae26f (patch) | |
| tree | 6a465cb94aee9ef19deb120c79f7574b80ddaeec | |
| parent | Guard GUILD_MEMBER_ADD/GUILD_MEMBER_REMOVE from errors (diff) | |
| download | discord.py-bf42cf72326a6fd6b64c697506be04c46acae26f.tar.xz discord.py-bf42cf72326a6fd6b64c697506be04c46acae26f.zip | |
Add warning if guilds intent is disabled.
| -rw-r--r-- | discord/state.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py index fa6a9ff3..82dbea68 100644 --- a/discord/state.py +++ b/discord/state.py @@ -139,6 +139,9 @@ class ConnectionState: else: intents = Intents.default() + if not intents.guilds: + log.warning('Guilds intent seems to be disabled. This may cause state related issues.') + try: chunk_guilds = options['fetch_offline_members'] except KeyError: |