Remove fetch_offline_members param for Client

This commit is contained in:
apple502j
2021-04-15 09:58:49 +09:00
committed by GitHub
parent 930c416ea7
commit 9f1a96ea9b
2 changed files with 1 additions and 11 deletions

View File

@ -152,15 +152,7 @@ class ConnectionState:
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:
chunk_guilds = options.get('chunk_guilds_at_startup', intents.members)
else:
msg = 'fetch_offline_members is deprecated, use chunk_guilds_at_startup instead'
warnings.warn(msg, DeprecationWarning, stacklevel=4)
self._chunk_guilds = chunk_guilds
self._chunk_guilds = options.get('chunk_guilds_at_startup', intents.members)
# Ensure these two are set properly
if not intents.members and self._chunk_guilds: