Add warning if guilds intent is disabled.

This commit is contained in:
Rapptz 2020-09-28 05:39:13 -04:00
parent 1ebb52b139
commit bf42cf7232

View File

@ -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: