diff options
| author | Rapptz <[email protected]> | 2020-09-24 09:00:07 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-24 09:00:54 -0400 |
| commit | e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b (patch) | |
| tree | 5a2e758db54330b4e9c49ec4bb12fa4f9077528d /discord/state.py | |
| parent | Fix typo in ValueError message (diff) | |
| download | discord.py-e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b.tar.xz discord.py-e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b.zip | |
Make Intent class creation more intuitive
Diffstat (limited to 'discord/state.py')
| -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 3257d41d..507226cc 100644 --- a/discord/state.py +++ b/discord/state.py @@ -137,7 +137,7 @@ class ConnectionState: if not isinstance(intents, Intents): raise TypeError('intents parameter must be Intent not %r' % type(intents)) else: - intents = Intents() + intents = Intents.default() try: chunk_guilds = options['fetch_offline_members'] |