If your Discord bot cannot see server members, the Server Members Intent is almost always switched off. It is off by default for every new bot. Only you can turn it on, in the Bot tab of the Discord Developer Portal. After saving, read your members again and the list fills in.
What is the Server Members Intent?
An intent tells Discord which kinds of events a bot wants to receive. Discord's gateway documentation lists three privileged intents: GUILD_PRESENCES, GUILD_MEMBERS and MESSAGE_CONTENT. In the Developer Portal the GUILD_MEMBERS intent is called Server Members Intent.
Discord says a privileged intent must be enabled in the Developer Portal before an app specifies it when connecting. It also says the connection is closed if an app asks for a privileged intent that has not been configured. For that reason a bot without the switch gets no member data.
Why does the bot show an empty member list?
The list is empty because Discord is not handing the bot the data. BotLunar reads your members, their roles and how recently they were active so it can build audiences. Without the intent, BotLunar reads the list and finds nothing, which looks exactly like the product being broken.
Two signs point at the intent:
- The Audience page shows zero or very few members on file.
- A gap of a few percent against Discord's own member count is normal, but a gap of about ninety percent is the intent.
No invite link can switch the intent on. The permissions on an invite and the intents on the Bot tab are separate things. BotLunar's invite asks for seven permissions and never Administrator.
How do I switch on the Server Members Intent?
- Open the Discord Developer Portal and choose your application.
- Open the Bot tab.
- Scroll to Privileged Gateway Intents.
- Switch on Server Members Intent.
- Switch on Message Content Intent as well, which BotLunar's setup guide asks for so replies reach your inbox.
- Press Save Changes.
- Reload the page and check both switches stayed on.
BotLunar checks the intent when you add the bot token, so you find out at that moment and not later.
How do I check that it worked?
Open the Audience page in BotLunar and press Read members. A large server takes a few minutes because Discord hands members over in pages. Look at the two numbers at the top: members on file and members who can be messaged.
If the list now fills in, the intent was the cause. If it is still empty, press Check now on the Bots page, confirm the switch is on after a page reload, and confirm the bot is in the server you connected.
What if Discord says the intent needs approval?
Discord's gateway documentation says verified apps, which are required for apps in 100 or more servers, must have the intent approved. A bot made for one marketing server is nowhere near that size.
If you do see the approval message, the bot has probably been added to many servers. Create a fresh bot for this server instead of reusing it. The step by step guide to creating a bot shows how.
Does the intent change who I may message?
The intent only gives the bot your server's member list. BotLunar uses it to build audiences. What your permission to message members rests on is a separate matter: you declare it when you connect the server, and you are responsible for having a lawful basis under the laws that apply to you. This is not legal advice. The setup guide explains the declaration.
Frequently asked questions
Why is the Server Members Intent off by default?
Discord treats it as a privileged intent because it exposes member data. Every new bot starts with it off, and only the application owner can enable it in the Developer Portal.
Can an invite link turn the intent on?
No. An invite grants permissions in a server. Intents are a separate setting on the Bot tab, and nothing in an invite changes them.
Do I need the Message Content Intent too?
BotLunar's setup guide asks you to switch on both. The Message Content Intent lets the bot read replies, so they appear in your inbox.
Does a few percent difference in member count mean a problem?
No. A small gap against Discord's own total is normal. A very large gap points at the intent.
Next step
Follow the BotLunar setup guide to switch on both intents and read your members, or start the 7 day free trial on Lunar Weekly from the pricing page.