diff options
| author | Rapptz <[email protected]> | 2019-12-20 23:10:46 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:15 -0400 |
| commit | a6381dcf77f773316ea59767a06d06cfcc57e4d9 (patch) | |
| tree | 91e3606099ec7329518f5e9648a784bc3da83e73 /discord/client.py | |
| parent | Properly handle disconnects in voice when force disconnected (diff) | |
| download | discord.py-a6381dcf77f773316ea59767a06d06cfcc57e4d9.tar.xz discord.py-a6381dcf77f773316ea59767a06d06cfcc57e4d9.zip | |
Add support for guild intents
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index 407fd47f..91d83da4 100644 --- a/discord/client.py +++ b/discord/client.py @@ -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 |