aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorapple502j <[email protected]>2021-04-14 13:47:46 +0900
committerGitHub <[email protected]>2021-04-14 00:47:46 -0400
commitdea92a69dc47d629845aaf7eea068e33252c8d86 (patch)
treed50bae9904330f1113d9b263fadd68759e1ec03d
parentAdd StageChannel to abc.GuildChannel docs (diff)
downloaddiscord.py-dea92a69dc47d629845aaf7eea068e33252c8d86.tar.xz
discord.py-dea92a69dc47d629845aaf7eea068e33252c8d86.zip
Remove support for guild subscriptions
-rw-r--r--discord/client.py31
-rw-r--r--discord/gateway.py1
-rw-r--r--discord/state.py1
3 files changed, 0 insertions, 33 deletions
diff --git a/discord/client.py b/discord/client.py
index bda58085..ba7fc666 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -159,37 +159,6 @@ class Client:
preparing the member cache and firing READY. The default timeout is 2 seconds.
.. versionadded:: 1.4
- guild_subscriptions: :class:`bool`
- Whether to dispatch presence or typing events. Defaults to ``True``.
-
- .. versionadded:: 1.3
-
- .. warning::
-
- If this is set to ``False`` then the following features will be disabled:
-
- - No user related updates (:func:`on_user_update` will not dispatch)
- - All member related events will be disabled.
- - :func:`on_member_update`
- - :func:`on_member_join`
- - :func:`on_member_remove`
-
- - Typing events will be disabled (:func:`on_typing`).
- - If ``fetch_offline_members`` is set to ``False`` then the user cache will not exist.
- This makes it difficult or impossible to do many things, for example:
-
- - Computing permissions
- - Querying members in a voice channel via :attr:`VoiceChannel.members` will be empty.
- - Most forms of receiving :class:`Member` will be
- receiving :class:`User` instead, except for message events.
- - :attr:`Guild.owner` will usually resolve to ``None``.
- - :meth:`Guild.get_member` will usually be unavailable.
- - Anything that involves using :class:`Member`.
- - :attr:`users` will not be as populated.
- - etc.
-
- In short, this makes it so the only member you can reliably query is the
- message author. Useful for bots that do not require any state.
assume_unsync_clock: :class:`bool`
Whether to assume the system clock is unsynced. This applies to the ratelimit handling
code. If this is set to ``True``, the default, then the library uses the time to reset
diff --git a/discord/gateway.py b/discord/gateway.py
index 4e9e926e..73554493 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -373,7 +373,6 @@ class DiscordWebSocket:
},
'compress': True,
'large_threshold': 250,
- 'guild_subscriptions': self._connection.guild_subscriptions,
'v': 3
}
}
diff --git a/discord/state.py b/discord/state.py
index c75babb9..5650f1eb 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -120,7 +120,6 @@ class ConnectionState:
if self.guild_ready_timeout < 0:
raise ValueError('guild_ready_timeout cannot be negative')
- self.guild_subscriptions = options.get('guild_subscriptions', True)
allowed_mentions = options.get('allowed_mentions')
if allowed_mentions is not None and not isinstance(allowed_mentions, AllowedMentions):