diff options
| author | Rapptz <[email protected]> | 2020-09-14 03:18:25 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:20 -0400 |
| commit | 4d813da9e18c886fa0cb4f0480759eabdc734a45 (patch) | |
| tree | 1a67958ba4ed17152e1271a24c893042d04ea61f | |
| parent | Intern status and overwrite strings (diff) | |
| download | discord.py-4d813da9e18c886fa0cb4f0480759eabdc734a45.tar.xz discord.py-4d813da9e18c886fa0cb4f0480759eabdc734a45.zip | |
Pass default intents if not explicitly given
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py index 39190f1e..db47059b 100644 --- a/discord/state.py +++ b/discord/state.py @@ -139,6 +139,8 @@ class ConnectionState: if not intents.members and self._fetch_offline: raise ValueError('Intents.members has be enabled to fetch offline members.') + else: + intents = Intents() cache_flags = options.get('member_cache_flags', None) if cache_flags is None: |