Starts with a member joining or leaving
Welcome and goodbye
New members get a greeting in #welcome that mentions them and points to #roles. When someone leaves, #mod-log gets a line with their join date and how long they stayed, which tells you whether people leave after a day or after a year.
Illustration. The real interface may look different.
How it works
A member joining starts the first flow, which posts your greeting in the channel you picked.
A member leaving starts the second flow.
It posts their join date and their time on the server to your log channel.
How to make welcome and leave messages on Discord
The welcome is a three-step flow. The leave log does more: it works out how long the member stayed and links their last message, so your team can read a departure in context.
Describe it to your AI assistant
New people join and nobody says hi. Build two things. First: welcome every new member in #welcome with a short message that mentions them and points to #roles. Second, a leave log module: when someone leaves, post in #mod-log who left, when they joined, how long they stayed, which roles they had and a link to their last message. Make the log channel a setting.
Copy it and swap in your own channel and role names. Your assistant has a tested version of this example to start from.
Build it in the editor
Three flows: one on "Member joined", one on "Member left" and a small one that remembers each member's last message. In the "Create new flow" dialog, "Start from a template" offers the greeting as "Welcome new members".
The 3 flows, step by stepStep names are the ones the editor shows.
Flow 1Welcome
Trigger: Member joinedwhenever someone joins.
- Get serverFetches your server, for its name and member count.
- Create messageBuilds the greeting with the member's mention.
- Send messagePosts it in your welcome channel.
Flow 2Leave log
Trigger: Member leftwhenever someone leaves, is kicked or is banned.
- Increase a stored numberAdds 1 to the count of departures.
- Date differenceMeasures the time between their join date and now.
- Format durationTurns it into words, such as "8 months".
- Build message linkBuilds a link to the last message they sent, if one is on file.
- Create messageBuilds the entry: name, join date, time on the server, roles and the link.
- Send messagePosts it in the log channel.
Flow 3Remember the last message
Trigger: Message createdany message from a member, bots ignored.
- Build a shape valuePacks the IDs of the message into one value.
- Store a valueStores it for the author, replacing the one before.
For welcome images, switch on the welcome module that comes with your bot. See the welcome module
Test it, change it
What it stores
- Last messagePer userPer member: the IDs of their most recent message. The text is never stored, and the entry is deleted when the member leaves.
- DeparturesWhole serverOne number for the server.
How to test it
- Open a flow in the editor and click "Test run". Choose the member under "Run as" and click "Run test". The run uses your real server data but sends, changes and deletes nothing, and shows what each step would have done.
- A new flow is a "Draft" and does not run in Discord. Switch it on and click "Save & activate".
- A test run with yourself under "Run as" shows the greeting without anyone joining. For the real thing, join and leave with a second account.
- Each real run then shows up under "Executions", with the reason if it failed or was skipped.
What to change
- Welcome channel
- Picked in the "Send message" step of the welcome flow.
- Wording
- The greeting is in the "Create message" step. The log heading is a setting of the leave log.
- Log channel
- The "Log channel" setting in the module's "Configuration" tab.
- A role on join
- Add "Add role to member" to the welcome flow.
Watch out for
- Both member triggers need the Server Members Intent, and the last-message flow needs the Message Content Intent. Switch them on for your bot in the Discord Developer Portal, then restart the bot.
- Discord reports a kick or a ban as a member leaving too, so those show up in the log as well.
- If your server uses Discord's rules screening, a greeting on join can arrive before the member is able to read the channel.
Questions about this build
Why does my welcome flow not fire?
Check the Server Members Intent first. It is a privileged intent you switch on yourself in the Discord Developer Portal, and the bot needs a restart after you save the flow. The editor shows a banner for it.
Can the bot send the welcome as a DM?
Yes. Replace "Send message" with "Send DM to member". Many members have DMs from servers closed, so a channel greeting reaches more people.
Should I build this or use the welcome module?
For a text greeting, both work. For welcome images, auto-roles and leave messages, switch on the welcome module that comes with your bot.