Did you try to read a message but to your surprise it was an empty string? Or you saw a message telling you that the message content is disabled and you want to enable it?
Here is how you enable the message content intent in Discord:
- Go to the Discord developer portal.
- Select your application.
- In the "Bot" tab, go to the "Privileged Gateway Intents" category and scroll down to "Message Content Intent".
- Enable the toggle.
- If your bot is verified or in more than 100 servers, you need to apply for the intent in order to toggle it.
But wait! You aren't done yet!
You need to add the intent in your client as well:
client = interactions.Client(..., intents=interactions.Intents.DEFAULT | interactions.Intents.MESSAGE_CONTENT)
Your bot can now receive message contents!