diff options
| author | Rapptz <[email protected]> | 2020-09-24 09:00:07 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-24 09:00:54 -0400 |
| commit | e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b (patch) | |
| tree | 5a2e758db54330b4e9c49ec4bb12fa4f9077528d /docs | |
| parent | Fix typo in ValueError message (diff) | |
| download | discord.py-e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b.tar.xz discord.py-e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b.zip | |
Make Intent class creation more intuitive
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intents.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/intents.rst b/docs/intents.rst index 13d58221..6e18e738 100644 --- a/docs/intents.rst +++ b/docs/intents.rst @@ -21,7 +21,9 @@ For example, if you want a bot that functions without spammy events like presenc .. code-block:: python3 import discord - intents = discord.Intents(typing=False, presences=False) + intents = discord.Intents.default() + intents.typing = False + intents.presences = False Note that this doesn't enable :attr:`Intents.members` since it's a privileged intent. |