A privileged intent is a setting that Discord uses to gate sensitive data for bots. There are three: the Server Members Intent, the Presence Intent and the Message Content Intent. You switch each one on in the Bot tab of the Discord Developer Portal. BotLunar's setup guide asks for the first and the last.
What is an intent?
An intent tells Discord which events a bot wants to receive over its live connection, called the gateway. Discord's gateway documentation explains that an app passes the intents it wants when it connects, and receives only the events those intents cover.
Most intents need nothing more. Some are privileged because the data is sensitive.
What are the three privileged intents?
Discord's documentation lists GUILD_PRESENCES, GUILD_MEMBERS and MESSAGE_CONTENT as the privileged intents.
| Name in the Developer Portal | Gateway name | What it gives a bot |
|---|---|---|
| Presence Intent | GUILD_PRESENCES | Presence updates, such as who is online |
| Server Members Intent | GUILD_MEMBERS | Events about members joining, leaving and changing |
| Message Content Intent | MESSAGE_CONTENT | The content of messages across the API |
Discord describes the Message Content Intent as a unique privileged intent not directly associated with any gateway events. Instead, access to it permits an app to receive message content data across the APIs.
BotLunar's setup guide asks for two of them: the Server Members Intent, so BotLunar can read your member list, and the Message Content Intent, so replies reach your inbox. The Presence Intent is not on that list.
How do I switch one on?
- Open the Discord Developer Portal and choose your application.
- Open the Bot tab.
- Scroll to Privileged Gateway Intents.
- Switch on the intents you need.
- Press Save Changes and reload to check they stayed on.
Discord says you must enable a privileged intent in the Developer Portal before you can specify it when connecting, and that the connection is closed if an app passes a privileged intent that has not been configured or approved.
Why is it off by default?
Discord treats these intents as sensitive, so every new bot starts with them off. Discord also says you may only enable a privileged intent if your use case requires it to function and is consistent with its Developer Policy. Switch on only what you use.
A bot cannot switch them on for itself, and no invite link can. Only the owner of the application can, in the Developer Portal. The article on why a bot sees no members shows what happens when the Server Members Intent is off.
What changes once a bot is in many servers?
Discord's documentation says apps that qualify for verification, which is required for apps in 100 or more servers, must be approved for a privileged intent before they can use it. A bot made for one marketing server is far below that size.
If you see an approval message, the bot has probably been added to many servers. Create a fresh bot for your server instead of reusing it. The guide to creating a bot shows how.
Is a privileged intent a privacy risk?
It is access to data about your own server's members, or messages sent to your bot. How you use that data is what matters. BotLunar uses the Server Members Intent to build audiences and the Message Content Intent to show replies. This is not legal advice, and you are responsible for having a lawful basis to message your members under the laws that apply to you.
Frequently asked questions
How many privileged intents are there?
Three: Presence, Server Members and Message Content.
Does BotLunar need the Presence Intent?
BotLunar's setup guide does not ask for it. It asks for the Server Members Intent and the Message Content Intent.
Can I switch an intent on after the bot is connected?
Yes. Switch it on in the Developer Portal and save. Then press Check now in BotLunar.
Does an intent change my bot's permissions in a server?
No. Intents and permissions are separate. The article on marketing bot permissions explains the permissions side.
Next step
Read the BotLunar setup guide to switch on the intents BotLunar needs, or start the 7 day free trial on Lunar Weekly from the pricing page.