To set up a welcome message bot on Discord, create your own bot in the Discord Developer Portal, turn on its Server Members Intent, enable Community and rules screening on your server, then write the welcome message in BotLunar and switch it on. Each new member gets one direct message with a yes button when they finish screening.
What is a Discord welcome DM, and why use it to ask for consent?
A welcome DM is a single direct message that your bot sends to a new member right after they finish your server's rules screening. In BotLunar it carries your message, a line of small print describing what the member is agreeing to, and buttons.
The moment matters. A new member has just read your rules and chosen to stay. Their attention is on your server, and an honest question about future messages feels natural rather than intrusive.
The answer is also worth more than any other kind of permission. When a member presses the yes button themselves, the permission came from them, in their own action, at a time you can name. BotLunar records that basis as MEMBER_CONFIRMED and never merges it with weaker bases in reporting.
For the full setup around this message, read the BotLunar setup guide. The welcome messages feature page shows the same flow in short form.
What do I need before I turn the welcome message on?
Four things need to be in place before BotLunar can welcome anyone:
- A Discord bot that you made yourself in the Discord Developer Portal and connected to your server. BotLunar sends through your bot, not a shared one.
- Server Members Intent switched on for that bot, under Bot in the Developer Portal. Discord lists the server members intent among its privileged gateway intents, which you must enable in the Developer Portal before a bot can use them. It is off by default for every new bot.
- Message Content Intent switched on as well. BotLunar's guide lists it as needed for the welcome flow and for reading replies in your inbox.
- Community and rules screening enabled on your Discord server, so that members have a screen to finish.
If you skip the Server Members Intent, the welcome message does not work, and the Bots screen in BotLunar says so rather than failing silently.
How do I set up the welcome message in BotLunar?
Follow these steps in order. Allow about half an hour for the whole opt-in setup, including the Discord side.
- In Discord, open Server Settings, choose Enable Community, and follow the steps. Discord asks for a rules channel and a moderation channel.
- Open Server Settings, then Membership Screening, and add a few short rules. Add one line about direct messages, using the wording you write in the next section.
- In the Discord Developer Portal, open your bot's page and switch on Server Members Intent and Message Content Intent. Press Save Changes, then reload the page and check both are still on.
- In BotLunar, press Audience, then Opt in, then the Welcome message tab.
- Write the message using your opt-in wording. Keep it short.
- Check the preview, which shows the message as a member will see it.
- Switch the welcome message on.
BotLunar will not switch the welcome message on until the agreement wording says something real. If the switch refuses, the panel names what is missing, usually an offline bot or an empty message.
Once it is on, the From the welcome message counter climbs as members join and press the button.
How do I write the opt-in wording?
The opt-in wording is the sentence that every permission rests on. It must say who will message the member, what about, roughly how often, and how to stop.
- Write one sentence. For example: Tick to let Your Server Name send you direct messages about new releases and community events, about once a week.
- Add how to stop: You can unsubscribe from any message, with one click.
- Promise no figures. Leave out results, percentages and anything that sounds like a guaranteed outcome.
- Use the same words in all three places: the rules screening line, the welcome message and the channel opt-in button.
You can change the wording later. BotLunar copies the exact wording on screen onto every permission it produces, so editing the message never changes what a member already agreed to. Six months from now, the record shows what that person actually read.
What does a new member see?
A new member sees your message, then the agreement in small print, then up to three buttons:
| Button | Who writes it | What it does |
|---|---|---|
| Yes | You | Gives you permission to send direct messages |
| You, optional | Opens a box inside Discord to enter an email address | |
| No thanks | BotLunar adds it | Records a refusal, permanently |
The No thanks button is added for you and cannot be removed. A message that asks for permission has to offer a way to refuse on the same message, at the same moment.
Three rules apply whatever you write:
- Nobody is messaged before they finish rules screening. A member still reading the rules has not agreed to anything, so the welcome message waits.
- A member is welcomed once. If someone leaves and rejoins, BotLunar does not send a second welcome.
- Someone who unsubscribed earlier and later presses the yes button is told their earlier answer stands. Unsubscribing is not undone by a button.
What does Community and rules screening do for this?
Rules screening is the checkbox screen a new member sees before they can talk in your server. It is the one place in Discord where a member reads something and agrees to it.
It also makes the welcome flow possible. BotLunar knows a member finished screening because Discord reports it, and Discord only reports it if screening exists on your server.
The direct message line in your rules does two jobs:
- It is the wording you paste as your declaration when you connect the server, with a tick confirming it is true. BotLunar cannot check it with Discord: it is your statement about your own server, stored word for word with who made it and when. It covers every member BotLunar reads from the server, existing members too, except anyone who unsubscribed or is on your suppression list.
- It is also the wording you repeat in the welcome message, where a member's own yes is recorded as confirmed by the member. That is stronger evidence, a declaration never overwrites it, and we recommend asking for it.
Only declare what is true. You, the server owner, are responsible for having a lawful basis to message your own members under the laws that apply to you. This is not legal advice. For Discord's own description of Community and Membership Screening, use Discord's Help Center, since the exact menu names can change.
What are the common mistakes with a welcome message bot?
Asking for too much. One welcome message should ask for direct message permission, and optionally one email address. Piling on several requests lowers the number of members who say yes.
Leaving out the unsubscribe line. Every promotional message BotLunar sends carries an unsubscribe link that works at once, and a campaign cannot start with it switched off. Your wording should say so in plain words too, so the member knows before they press yes.
Leaving Server Members Intent off. This is the most frequent cause of a welcome message that never arrives. The intent is off by default, and no invite link can turn it on. Only you can, in the Developer Portal.
Setting an Interactions Endpoint URL. On the General Information page of your application, keep the Interactions Endpoint URL empty. If it is set, button presses stop reaching BotLunar, and members see an error that the application did not respond.
Promising results. Wording that mentions payouts, percentages or guaranteed outcomes damages trust and belongs nowhere in an opt-in.
How do I test the welcome message?
Testing the welcome message needs a real second account, because only a genuine joiner triggers it.
- Join your server with a spare account, or ask a colleague to join.
- Accept the rules screening and tick to agree.
- Check that the welcome direct message arrives with your buttons.
- Press the yes button. The reply, visible only to you, should say the server can now message you and that stopping is permanent.
- Press it again. It should say nothing changed rather than recording a second answer.
- Open Audience and check that the From the welcome message counter moved.
- Join again with another account but do not finish screening. No welcome message should arrive.
- Have a tester leave and rejoin. They should not get a second welcome.
If new members do not get the message, check that the switch is on under Audience and Opt in, that Community and Membership Screening are enabled in Discord, that the bot is listening on the Bots page, and that Message Content Intent is on.
Frequently asked questions
Does the welcome message reach members who joined before I set it up?
No. The welcome message only reaches new members who finish rules screening after you switch it on. Existing members are already covered by your declaration. To ask them for their own yes, post the opt-in button in a channel, where anyone already in your server can press it.
Can I ask for an email address in the same message?
Yes. The email button is optional and you write its wording. It opens a box inside Discord. The email is a separate permission from direct messages, recorded separately. Read more in how to collect emails from Discord members.
Does a member have to press a button to be messaged?
No. Connecting a server needs your declaration that its rules screening asks members to agree to direct messages, and every member BotLunar reads from it can then be messaged, recorded as covered by your declaration, unless they unsubscribed or are on your suppression list. A member's own yes is recorded as confirmed by the member, and reports never merge the two. A server connected before the declaration step existed shows server membership only. We recommend building the member's own yes. You are responsible for having a lawful basis under the laws that apply to you. This is not legal advice.
Can a member change their mind later?
Yes. Every promotional message has an unsubscribe link that works at once. Unsubscribing is permanent, takes effect immediately, and applies to messages already queued. No member sync brings the person back.
Next step
Read the BotLunar setup guide for the full walk through, or start the 7 day free trial on Lunar Weekly from the pricing page. To send automatic messages that follow the rules, read about the Discord auto DM bot.