mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Pass default intents if not explicitly given
This commit is contained in:
parent
f2de794bde
commit
4d813da9e1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user