From 4c56e6da9c2b6736dbdfc8aa0956bad61bf65965 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 14 Sep 2020 03:18:25 -0400 Subject: [PATCH] Pass default intents if not explicitly given --- discord/state.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/state.py b/discord/state.py index fd177dec..a66c0858 100644 --- a/discord/state.py +++ b/discord/state.py @@ -133,6 +133,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: