mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-13 13:25:26 +00:00
Remove fetch_offline_members param for Client
This commit is contained in:
parent
930c416ea7
commit
9f1a96ea9b
@ -132,8 +132,6 @@ class Client:
|
|||||||
currently selected intents.
|
currently selected intents.
|
||||||
|
|
||||||
.. versionadded:: 1.5
|
.. versionadded:: 1.5
|
||||||
fetch_offline_members: :class:`bool`
|
|
||||||
A deprecated alias of ``chunk_guilds_at_startup``.
|
|
||||||
chunk_guilds_at_startup: :class:`bool`
|
chunk_guilds_at_startup: :class:`bool`
|
||||||
Indicates if :func:`.on_ready` should be delayed to chunk all guilds
|
Indicates if :func:`.on_ready` should be delayed to chunk all guilds
|
||||||
at start-up if necessary. This operation is incredibly slow for large
|
at start-up if necessary. This operation is incredibly slow for large
|
||||||
|
@ -152,15 +152,7 @@ class ConnectionState:
|
|||||||
if not intents.guilds:
|
if not intents.guilds:
|
||||||
log.warning('Guilds intent seems to be disabled. This may cause state related issues.')
|
log.warning('Guilds intent seems to be disabled. This may cause state related issues.')
|
||||||
|
|
||||||
try:
|
self._chunk_guilds = options.get('chunk_guilds_at_startup', intents.members)
|
||||||
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
|
|
||||||
|
|
||||||
# Ensure these two are set properly
|
# Ensure these two are set properly
|
||||||
if not intents.members and self._chunk_guilds:
|
if not intents.members and self._chunk_guilds:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user