Add support for guild intents

This commit is contained in:
Rapptz
2019-12-20 23:10:46 -05:00
parent 9036b9651b
commit a6381dcf77
4 changed files with 331 additions and 1 deletions

View File

@ -140,6 +140,10 @@ class Client:
Integer starting at ``0`` and less than :attr:`.shard_count`.
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
disabling and enabling certain gateway events from triggering and being sent.
Currently, if no intents are passed then you will receive all data.
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