Skip to content

Commit 31d1deb

Browse files
JustaSqu1dLulalabyDorukyum
authored
feat(docs): Message Content Intent in Migration Guide (#1583)
* feat(docs): Intents in Migration Guide * fix: misplaced section * fix: typos and spelling errors * Update migrating_to_v2.rst * Update docs/migrating_to_v2.rst Co-authored-by: Dorukyum <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: Dorukyum <[email protected]>
1 parent c12e640 commit 31d1deb

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/migrating_to_v2.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Migrating to v2.0
66
=================
77

8-
v2.0 introduced new Discord features and depcreated some old ones.
8+
v2.0 introduced new Discord features and deprecated some old ones.
99

1010
Part of the redesign involves making application commands and components. These changes include a new :class:`Bot` class, :class:`ui.View`, and a new :class:`ApplicationContext` class. If you're interested in creating them, please check out our :resource:`guide <guide>`.
1111

@@ -95,7 +95,7 @@ Asset-related attributes that previously returned hash strings (e.g. :attr:`User
9595
Webhook Changes
9696
~~~~~~~~~~~~~~~
9797

98-
- :class:`Webhook` and :class:`WebhookMessage` are now always asynchronouns. For synchronouns use (``requests``), use :class:`SyncWebhook` and :class:`SyncWebhookMessage`.
98+
- :class:`Webhook` and :class:`WebhookMessage` are now always asynchronous. For synchronous use (``requests``), use :class:`SyncWebhook` and :class:`SyncWebhookMessage`.
9999
- ``WebhookAdapter``, ``AsyncWebhookAdapter``, and ``RequestsWebhookAdapter`` are removed, since they are unnecessary.
100100
- ``adapter`` arguments of :meth:`Webhook.partial` and :meth:`Webhook.from_url` are removed. Sessions are now passed directly to ``partial`` / ``from_url``.
101101

@@ -119,6 +119,17 @@ Webhook Changes
119119
await webhook.send("Hello from Pycord 2.0")
120120
121121
122+
.. _migrating_2_0_intents_changes:
123+
124+
Intents Changes
125+
---------------
126+
127+
:attr:`Intents.message_content` is now a privileged intent. Disabling it causes :attr:`Message.content`,
128+
:attr:`Message.embeds`, :attr:`Message.components`, and :attr:`Message.attachments` to be empty (an empty string
129+
or an empty array), directly causing :class:`ext.commands.Command`s to not run.
130+
See `here <https://support-dev.discord.com/hc/en-us/articles/4404772028055-Message-Content-Privileged-Intent-FAQ>`_ for more information.
131+
132+
122133
.. _migrating_2_0_thread_introduced:
123134
124135
Threads Introduced
@@ -221,7 +232,7 @@ Many method arguments now reject ``None`` or return ``None``.
221232
- The following :class:`.ext.commands.Context` attributes can now be ``None``: ``prefix``, ``command``, ``invoked_with``, ``invoked_subcommand``.
222233
- :attr:`ext.commands.Command.help` can now be ``None``.
223234

224-
.. _migrating_2_0_miscelaneous_changes:
235+
.. _migrating_2_0_miscellaneous_changes:
225236

226237
Miscellaneous Changes
227238
---------------------

0 commit comments

Comments
 (0)