aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/intents.rst4
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.