diff options
| author | Maya <[email protected]> | 2020-11-09 11:13:49 +1300 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-11-21 21:31:42 -0500 |
| commit | 78c916a486251f3d6663e43f060995d0bc3523db (patch) | |
| tree | 635432dbfe6f8f08610610aca8b0e99b8c09ed85 | |
| parent | [commands] Update MessageConverter link regex (diff) | |
| download | discord.py-78c916a486251f3d6663e43f060995d0bc3523db.tar.xz discord.py-78c916a486251f3d6663e43f060995d0bc3523db.zip | |
Emphasize intents in the constructors of the examples
| -rw-r--r-- | docs/intents.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/intents.rst b/docs/intents.rst index 7f937658..acd02336 100644 --- a/docs/intents.rst +++ b/docs/intents.rst @@ -19,6 +19,7 @@ The intents that are necessary for your bot can only be dictated by yourself. Ea For example, if you want a bot that functions without spammy events like presences or typing then we could do the following: .. code-block:: python3 + :emphasize-lines: 7,9,10 import discord intents = discord.Intents.default() @@ -36,6 +37,7 @@ Note that this doesn't enable :attr:`Intents.members` since it's a privileged in Another example showing a bot that only deals with messages and guild information: .. code-block:: python3 + :emphasize-lines: 7,9,10 import discord intents = discord.Intents(messages=True, guilds=True) @@ -155,6 +157,7 @@ Due to an :ref:`API change <intents_member_cache>` Discord is now forcing develo For example: .. code-block:: python3 + :emphasize-lines: 3,6,8,9 import discord intents = discord.Intents.default() |