Fix typos in Intents documentation
This commit is contained in:
parent
0ebf5b2fa7
commit
2974663367
@ -465,11 +465,11 @@ class Intents(BaseFlags):
|
|||||||
|
|
||||||
This also corresponds to the following attributes and classes in terms of cache:
|
This also corresponds to the following attributes and classes in terms of cache:
|
||||||
|
|
||||||
- :attr:`Client.get_all_members`
|
- :meth:`Client.get_all_members`
|
||||||
- :meth:`Guild.chunk`
|
- :meth:`Guild.chunk`
|
||||||
- :meth:`Guild.fetch_members`
|
- :meth:`Guild.fetch_members`
|
||||||
- :meth:`Guild.members`
|
|
||||||
- :meth:`Guild.get_member`
|
- :meth:`Guild.get_member`
|
||||||
|
- :attr:`Guild.members`
|
||||||
- :attr:`Member.roles`
|
- :attr:`Member.roles`
|
||||||
- :attr:`Member.nick`
|
- :attr:`Member.nick`
|
||||||
- :attr:`Member.premium_since`
|
- :attr:`Member.premium_since`
|
||||||
@ -601,10 +601,10 @@ class Intents(BaseFlags):
|
|||||||
This corresponds to the following events:
|
This corresponds to the following events:
|
||||||
|
|
||||||
- :func:`on_message` (both guilds and DMs)
|
- :func:`on_message` (both guilds and DMs)
|
||||||
- :func:`on_message_update` (both guilds and DMs)
|
- :func:`on_message_edit` (both guilds and DMs)
|
||||||
- :func:`on_message_delete` (both guilds and DMs)
|
- :func:`on_message_delete` (both guilds and DMs)
|
||||||
- :func:`on_raw_message_delete` (both guilds and DMs)
|
- :func:`on_raw_message_delete` (both guilds and DMs)
|
||||||
- :func:`on_raw_message_update` (both guilds and DMs)
|
- :func:`on_raw_message_edit` (both guilds and DMs)
|
||||||
- :func:`on_private_channel_create`
|
- :func:`on_private_channel_create`
|
||||||
|
|
||||||
This also corresponds to the following attributes and classes in terms of cache:
|
This also corresponds to the following attributes and classes in terms of cache:
|
||||||
@ -629,10 +629,10 @@ class Intents(BaseFlags):
|
|||||||
This corresponds to the following events:
|
This corresponds to the following events:
|
||||||
|
|
||||||
- :func:`on_message` (only for guilds)
|
- :func:`on_message` (only for guilds)
|
||||||
- :func:`on_message_update` (only for guilds)
|
- :func:`on_message_edit` (only for guilds)
|
||||||
- :func:`on_message_delete` (only for guilds)
|
- :func:`on_message_delete` (only for guilds)
|
||||||
- :func:`on_raw_message_delete` (only for guilds)
|
- :func:`on_raw_message_delete` (only for guilds)
|
||||||
- :func:`on_raw_message_update` (only for guilds)
|
- :func:`on_raw_message_edit` (only for guilds)
|
||||||
|
|
||||||
This also corresponds to the following attributes and classes in terms of cache:
|
This also corresponds to the following attributes and classes in terms of cache:
|
||||||
|
|
||||||
@ -656,10 +656,10 @@ class Intents(BaseFlags):
|
|||||||
This corresponds to the following events:
|
This corresponds to the following events:
|
||||||
|
|
||||||
- :func:`on_message` (only for DMs)
|
- :func:`on_message` (only for DMs)
|
||||||
- :func:`on_message_update` (only for DMs)
|
- :func:`on_message_edit` (only for DMs)
|
||||||
- :func:`on_message_delete` (only for DMs)
|
- :func:`on_message_delete` (only for DMs)
|
||||||
- :func:`on_raw_message_delete` (only for DMs)
|
- :func:`on_raw_message_delete` (only for DMs)
|
||||||
- :func:`on_raw_message_update` (only for DMs)
|
- :func:`on_raw_message_edit` (only for DMs)
|
||||||
- :func:`on_private_channel_create`
|
- :func:`on_private_channel_create`
|
||||||
|
|
||||||
This also corresponds to the following attributes and classes in terms of cache:
|
This also corresponds to the following attributes and classes in terms of cache:
|
||||||
|
@ -21,7 +21,7 @@ For example, if you want a bot that functions without spammy events like presenc
|
|||||||
.. code-block:: python3
|
.. code-block:: python3
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
intents = Intents(typing=False, presences=False)
|
intents = discord.Intents(typing=False, presences=False)
|
||||||
|
|
||||||
Note that this doesn't enable :attr:`Intents.members` since it's a privileged intent.
|
Note that this doesn't enable :attr:`Intents.members` since it's a privileged intent.
|
||||||
|
|
||||||
@ -65,12 +65,16 @@ Do I need privileged intents?
|
|||||||
|
|
||||||
This is a quick checklist to see if you need specific privileged intents.
|
This is a quick checklist to see if you need specific privileged intents.
|
||||||
|
|
||||||
|
.. _need_presence_intent:
|
||||||
|
|
||||||
Presence Intent
|
Presence Intent
|
||||||
+++++++++++++++++
|
+++++++++++++++++
|
||||||
|
|
||||||
- Whether you use :attr:`Member.status` at all to track member statuses.
|
- Whether you use :attr:`Member.status` at all to track member statuses.
|
||||||
- Whether you use :attr:`Member.activity` or :attr:`Member.activities` to check member's activities.
|
- Whether you use :attr:`Member.activity` or :attr:`Member.activities` to check member's activities.
|
||||||
|
|
||||||
|
.. _need_members_intent:
|
||||||
|
|
||||||
Member Intent
|
Member Intent
|
||||||
+++++++++++++++
|
+++++++++++++++
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user