aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
authorapple502j <[email protected]>2021-04-15 09:58:49 +0900
committerGitHub <[email protected]>2021-04-14 20:58:49 -0400
commit9f1a96ea9ba45c1862f64166a1369e7b94ad1bee (patch)
treefaa444221b595e600c466f7059a6fcc9b065ab15 /discord/state.py
parentFix exception for invalid channel types (diff)
downloaddiscord.py-9f1a96ea9ba45c1862f64166a1369e7b94ad1bee.tar.xz
discord.py-9f1a96ea9ba45c1862f64166a1369e7b94ad1bee.zip
Remove fetch_offline_members param for Client
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py10
1 files changed, 1 insertions, 9 deletions
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: