From e4d7f44aa59d2bbd0f98f461e4b6504426a7eb8b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 24 Sep 2020 09:00:07 -0400 Subject: Make Intent class creation more intuitive --- docs/intents.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') 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. -- cgit v1.2.3