Before you start
Join and leave events need the Server Members Intent. In the Discord Developer Portal, open your bot, open Bot, and switch on Server Members Intent.Step 1: Make the welcome card
- Open Card Studio and pick a welcome template. Press Use this.
- Put the person’s name on it with
{user_displayName}and the member count with{server_members}. - Use Send me a test to see the real card in your DMs.
- Save.
Step 2: The welcome event
- Open Events and make a new event.
- Pick the event for when a member joins (search for
join). - Add Give roles and pick your Member role.
- Add Make an image card and pick your welcome card.
- Add a block that sends a message to a channel (search for
channel). Pick your welcome channel and write:
- Save and switch the event on.
Step 3: The goodbye event
- Make another new event for when a member leaves (search for
leave). - Add a block that sends a message to your welcome channel:
{user_name} left us. Bye! - Save and switch it on.
Step 4: Test it
Ask a friend to join, or join with a second account. If nothing happens, check:- Is the event switched on?
- Is the Server Members Intent on?
- Can the bot see and write in the welcome channel?
- Open Error Logs to see what went wrong.
Make it yours
- Send a private hello too: add a block that sends a direct message (search for
direct). - Count joins: add Do the maths on a Number variable
joins(scope Server Specific),+ 1, and show{DBVAR_joins}in the message.
