Skip to content

Commit b2c1bad

Browse files
committed
docs: detail message content intent in migration
1 parent 210573d commit b2c1bad

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/migration.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ Additionally, modifying the way information is dispatched from the Gateway must
3737

3838
.. code-block:: python
3939
40-
class ExtendedWebSocketClient(WebSocketClient):
40+
import interactions
41+
42+
class ExtendedWebSocketClient(interactions.WebSocketClient):
4143
def _dispatch_event(self, event: str, data: dict):
4244
super()._dispatch_event(event, data)
4345
@@ -49,3 +51,14 @@ We recommend that working in correspondance with this, you should be making use
4951
A slight, yet another breaking change we made was dundering numerous attributes in our internal models.
5052
You will now need to refer to the client's HTTP object as ``_http`` instead of ``http``. In order to view
5153
the full list of these, we highly encourage you to view the documentation readily available.
54+
55+
The last, and most major change is the introduction of the ``MESSAGE_CONTENT`` privileged intent in the library.
56+
Because of ``4.1.0`` using version 10 of the Discord API, this intent is now required for reading all message
57+
content. In order to make sure your bot works still, you will need to enable this intent in your bot's developer
58+
portal and add the intent to your current intents when connecting:
59+
60+
.. code-block:: python
61+
62+
from interactions import Client, Intents
63+
64+
bot = Client("TOKEN", intents=Intents.DEFAULT | Intents.MEESAGE_CONTENT)

0 commit comments

Comments
 (0)