aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py2
-rw-r--r--discord/state.py10
2 files changed, 1 insertions, 11 deletions
diff --git a/discord/client.py b/discord/client.py
index ba7fc666..c3c15452 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -132,8 +132,6 @@ class Client:
currently selected intents.
.. versionadded:: 1.5
- fetch_offline_members: :class:`bool`
- A deprecated alias of ``chunk_guilds_at_startup``.
chunk_guilds_at_startup: :class:`bool`
Indicates if :func:`.on_ready` should be delayed to chunk all guilds
at start-up if necessary. This operation is incredibly slow for large
diff --git a/discord/state.py b/discord/state.py
index 5650f1eb..e6f26def 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -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: