Invite tracking

How to set up a Discord welcome message that shows who invited them

Moderation Bot can post a message whenever someone joins through an invite, and another when someone leaves. Both use placeholders, so each message can name the new member, the person who invited them and the invite they used.

Steps

  1. Open the invite settings

    On the dashboard, open Invites and go to its settings. You can also run /invites settings in Discord as an administrator to get a link straight there.

  2. Turn on welcome messages and pick a channel

    Switch on welcome messages and choose the channel they should post in. A channel is required while the message is on.

  3. Write your message

    Type your message or click the placeholder chips to insert them. A preview next to the box shows roughly how it will look in Discord.

  4. Do the same for leave messages

    Switch on leave messages if you want them, pick a channel and write the text. Many servers send these to a staff channel rather than a public one.

  5. Save

    Save your changes. If the bot cannot post in a channel you picked, the error names the channel and the permission it is missing.

Placeholders you can use

Placeholders are replaced with real details when the message is sent. The welcome message supports all five. The leave message supports {user1}, {user2}, {code} and {guild-name}.

  • {user1} mentions the member who joined or left.
  • {user2} mentions the member whose invite was used. It shows Unknown if the inviter could not be found.
  • {code} is the invite code that was used. Vanity URL joins show VANITY.
  • {uses} is how many times that invite has been used.
  • {guild-name} is your server’s name.

An example welcome message

The default welcome message reads "**{user1}** has joined using **{user2}**'s invite! | Code: **{code}** (**{uses}** uses)". Messages can be up to 2,000 characters, so there is room to add your rules channel or a friendly hello.

If you want to start again, use the reset to default button under each message box. It puts back the original text without touching your channel.

The account age check and fake invites

The same settings page has an account age check. Turn it on and set a minimum account age, which defaults to 7 days and can go up to 10 years. Joins from newer accounts are still recorded and still get a welcome message, but they count as fake invites rather than valid ones.

This keeps alt accounts from padding anyone’s invite total, which matters if you hand out rewards for invites.

Common questions

Can I send the welcome message without the inviter?

Yes. Every placeholder is optional. Leave out {user2} and {code} and the message simply greets the new member.

Why did my welcome message not post?

Check that the bot can view and send messages in the channel you picked. When you save, the dashboard tells you which permission is missing.

Related guides

Give your mods a break.

Add the bot, and auto-mod starts protecting your server straight away. Free to add.