aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-09-14 02:52:53 -0400
committerRapptz <[email protected]>2020-09-23 03:21:20 -0400
commit23ae084b8cb3bb5c9d815b791c1a94b0cf53e516 (patch)
tree2b50eb9d05bf3bb1d06d2d78d52fdca276e76e14 /discord/client.py
parentRaise if member intent is not enabled (diff)
downloaddiscord.py-23ae084b8cb3bb5c9d815b791c1a94b0cf53e516.tar.xz
discord.py-23ae084b8cb3bb5c9d815b791c1a94b0cf53e516.zip
Allow finer grained control over the member cache.
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index c39a26da..861617b7 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -141,9 +141,14 @@ class Client:
shard_count: Optional[:class:`int`]
The total number of shards.
intents: :class:`Intents`
- A list of intents that you want to enable for the session. This is a way of
+ The intents that you want to enable for the session. This is a way of
disabling and enabling certain gateway events from triggering and being sent.
- Currently, if no intents are passed then you will receive all data.
+
+ .. versionadded:: 1.5
+ member_cache_flags: :class:`MemberCacheFlags`
+ Allows for finer control over how the library caches members.
+
+ .. versionadded:: 1.5
fetch_offline_members: :class:`bool`
Indicates if :func:`.on_ready` should be delayed to fetch all offline
members from the guilds the client belongs to. If this is ``False``\, then