mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 17:59:52 +00:00
Make Intent class creation more intuitive
This commit is contained in:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user