You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migrating_to_v2.rst
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
Migrating to v2.0
6
6
=================
7
7
8
-
v2.0 introduced new Discord features and depcreated some old ones.
8
+
v2.0 introduced new Discord features and deprecated some old ones.
9
9
10
10
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>`.
11
11
@@ -95,7 +95,7 @@ Asset-related attributes that previously returned hash strings (e.g. :attr:`User
95
95
Webhook Changes
96
96
~~~~~~~~~~~~~~~
97
97
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`.
99
99
- ``WebhookAdapter``, ``AsyncWebhookAdapter``, and ``RequestsWebhookAdapter`` are removed, since they are unnecessary.
100
100
- ``adapter`` arguments of :meth:`Webhook.partial` and :meth:`Webhook.from_url` are removed. Sessions are now passed directly to ``partial`` / ``from_url``.
101
101
@@ -119,6 +119,17 @@ Webhook Changes
119
119
await webhook.send("Hello from Pycord 2.0")
120
120
121
121
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
+
122
133
.. _migrating_2_0_thread_introduced:
123
134
124
135
Threads Introduced
@@ -221,7 +232,7 @@ Many method arguments now reject ``None`` or return ``None``.
221
232
- The following :class:`.ext.commands.Context` attributes can now be ``None``: ``prefix``, ``command``, ``invoked_with``, ``invoked_subcommand``.
222
233
- :attr:`ext.commands.Command.help` can now be ``None``.
0 commit comments