Make Intent class creation more intuitive

This commit is contained in:
Rapptz
2020-09-24 09:00:07 -04:00
parent dc6e9e7fd6
commit e4d7f44aa5
3 changed files with 15 additions and 11 deletions

View File

@ -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.