← Blog

11/13/2026

Welcome messages and autorole on Discord: a setup that works on the first try

A step-by-step plan for greeting new members and giving them a starting role: the intent you must enable, the role order trap, what to put in the message, and how to test it without inviting a second account to every server.

A good first minute on a server decides whether a new member stays. A short welcome message that points to the rules and the right channels, plus a starting role that unlocks the server, does most of that work. It is also one of the first things people build with a bot, and one of the first things that silently does not work.

Here is a setup that works on the first try, and why each step matters.

Step 1: turn on the Server Members intent


Discord only tells a bot that someone joined if the bot asked for member events, and that is a privileged intent. Without it the "member joined" trigger never fires and nothing in your flow runs.
Open the Discord Developer Portal and pick your bot's application.
Go to Bot → Privileged Gateway Intents.
Switch on Server Members Intent and save.
Restart the bot so it reconnects with the new intent.

This is the single most common reason a welcome message never appears.

Step 2: put the bot's role above the role it gives


Discord lets a bot give only roles that sit below its own highest role in Server Settings → Roles. If your "Member" role sits above the bot's role, the autorole fails every time.

Drag the bot's role above "Member" (and above any other role it should hand out). The bot also needs the Manage Roles permission. You do not need Administrator.

Step 3: decide what the welcome message is for


A welcome message has one job: tell a new person what to do next. Three short lines usually beat a long story:
👋 Welcome to {server.name}, {user}!
📜 Read the rules in #rules, then pick your roles in #roles.
🎫 Need help? Open a ticket in #support.

Some tips:
Mention the member so they get a notification and know the message is for them.
Link channels with #channel mentions instead of describing where to click.
Add the member count ("You are member #512") if you like; people enjoy it.
Avoid pinging roles or @everyone in welcome messages. On a busy day this spams the whole server.
A banner or a generated welcome card with the member's avatar looks great, but keep the text readable without it, since some people load images slowly.

Send the message to a dedicated #welcome channel rather than your main chat, so conversations are not interrupted by a stream of greetings.

Step 4: build the flow


In a visual builder the whole thing is one small automation:
Trigger: Member Joined.
Add Role: the member who joined, role "Member".
Send Message: to #welcome, with the text above.

Two optional extras that are worth it:
Skip bots: add a check so bots that join do not get the member role or a greeting.
Direct message: a short DM with the same three links. Some members have DMs from servers turned off, so make sure a failed DM does not stop the rest of the flow.

In Bottly, the Library has a ready welcome and autorole automation you can add to any bot and edit, and variables such as {user}, {server.name} and {server.memberCount} fill themselves in.

Step 5: test it properly


Testing with your own account does not work: you are already a member, and as the owner you bypass permissions. Instead:
Use a second Discord account and join the server with an invite. Leave and join again to repeat the test.
Or, while building, use a preview that simulates a member joining. Bottly's Live Preview can fire a "member joined" event and show the welcome message and the role change without a second account.
After a real test, open the bot's Logs. If the role was not given, the log shows why (usually "Missing Permissions", which means role order).

Goodbye messages, verification and other extras


Once welcome and autorole work, related features use the same building blocks:
Goodbye messages use the Member Left trigger and the same intent.
Verification: instead of giving "Member" on join, give it when the member clicks a "Verify" button in #verify. This keeps raid accounts out of the rest of the server.
Invite tracking ("joined using an invite from @someone") needs the bot to have Manage Server so it can read invite counts.

Keep each of these as its own small automation. When something breaks, you will know exactly which one to open.