mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Make Intent class creation more intuitive
This commit is contained in:
1 parent
dc6e9e7fd6
commit
e4d7f44aa5
3 files changed
+15
-11
No files matched your search
+3
-1
@@ -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