Set up a Discord invite tracker bot
A Discord invite tracker records which invite each new member used, then shows who brought them. This guide sets up an invite tracker bot with Voinly: choose which links count, wait until someone has stayed, post a join message, and give roles to the members who recruit. Discord has no built-in invite tracker, so the numbers below are the ones Voinly actually stores.
Updated
Quick steps
How to use an invite tracker bot, before the settings below. The command walk-through is on the invite tracker bot page. A greeting is the welcome message guide. A prize draw is the Discord giveaway bot guide, a question is the voting bot for Discord, and a private room is the temp voice guide.
- Turn on Invite tracker and give Voinly Manage Server.
- Choose All invites or Only personal links, and how many hours a member must stay.
- Optional: send a join message, and add up to 25 reward roles.
- Run
/invites,/inviterand/invites leaderboardto check it.
What a Discord invite tracker is
An invite tracker bot watches new joins and ties each person to an invite link. You then know whether a partner's link, a member's link or your own vanity URL brought them in. Servers use that for recruiter roles, a monthly contest, or simply to thank the person who shared the server.
Discord's own invite list shows how many times a link was used, and the audit log can show who created a link. It does not attach a member to the link they used, and it does not take the use away when that member leaves an hour later. A tracker fills that gap. Voinly's Invite tracker, under Server management, does it inside the same bot as welcome messages and member counts.
The tracker is off until you turn it on. You can edit the settings first. Nothing is recorded, and no join message is sent, until Invite tracker is on.
What Discord can show without a bot
Open Server Settings, then Invites. Each link has a use count, an expiry and the member who created it. That list is useful for housekeeping: delete links you no longer want, and see which campaign link was used the most. It still cannot answer "who invited Mika?" after Mika is in the member list.
A vanity URL, on servers that have one, is a single custom link. Discord counts its uses, but there is no member behind it. Server Discovery and some other join paths do not carry a normal invite at all. Any bot, including Voinly, can only credit a join when Discord's invite use counts change in a way that points at one link.
How Voinly matches a join to an invite
When Invite tracker is on, Voinly loads the server's invites. It needs the Manage Server permission to do that. The dashboard warns "Voinly needs Manage server to see which invite a member used" when the permission is missing. Each later join is compared with that list: the link whose use count went up is the one they used. A limited invite that disappears because it just hit its maximum uses counts as used too.
Some joins are saved with no inviter, on purpose:
- Bots are ignored. They never get a row and never add to a count.
- A join through the server's vanity URL is recognised and is not credited to a member.
- A member who joins with their own invite earns nothing.
- If zero links changed, or more than one link changed at the same moment, Voinly does not guess. Nobody is credited.
- In Only personal links mode, a join through any other link is not credited. Only the link Voinly made for that member counts.
If five joins are already being checked at the same time, further joins in that burst are skipped instead of guessed. A skipped join is not saved: it does not add to a count, and it does not get an invite join message. A welcome message from the welcome module can still post, because that is a separate module.
Joins from before you turned the tracker on are not reconstructed. /inviter says it does not know who invited someone when there is no saved row, and its reply says they may have joined before tracking started.
All invites, or only personal links
Under Counting, Count has two choices. All invites is the default. Every invite link counts, and the credit goes to the member Discord records as the creator of that link. Members share a link they create themselves in a channel where they have Create Invite. A link a moderator made for a partner or an ad is credited to that moderator.
Only personal links ignores those other links. Each member gets one link from /invites, created the first time they run it and kept after that. The link opens the channel you pick in Channel for personal links, which can be a text, announcement, forum, voice or stage channel. Voinly needs Create Invite there. If the permission is missing, the page warns you, and /invites tells the member it could not create the link. Saving with personal links on and no channel picked is refused: "Pick a channel for personal links, or count all invites."
In All invites mode, /invites does not create a link. It only replies with how many members that person brought who stayed. Switch to personal links when you want one stable link per member and you do not want staff campaign links added to anyone's total.
Only count members who stay
A join counts after the member stayed is a whole number of hours from 0 to 720. 720 hours is 30 days. The default is 24 hours. The field help says that 0 counts at once. The dashboard refuses anything else with "Use a whole number of hours from 0 to 720."
Every matched join is stored immediately and shows up in Total. It moves into Stayed, which is the number the leaderboard rank and the role rewards use, once that member is still in the server after the hours you set. Voinly checks for this about every 5 minutes, so a reward can land a few minutes after the hour, not on the exact second.
A member who leaves sooner is listed under Left only. They never enter Stayed, so they never unlock a reward. A member who leaves after the stay does not lose the point: Stayed keeps it, and Left goes up as well. Voinly does not detect fake or alt accounts. A second account that stays the required hours counts like any other member. The timer only ignores people who leave first.
A member who leaves and joins again gets a new row. If they stay long enough the second time, that join can count again. The earlier point stays. One person can therefore be worth more than one invite if they come back and stay each time.
The join message
The join message is off until you turn on Send a message when someone joins and pick a Channel. That channel is a text or announcement channel, separate from the welcome channel. You can use the same channel or a different one. If the switch is on and no channel is picked, saving is refused: "Pick a channel for the join message."
The starting Message is {user.mention} joined, invited by **{inviter.name}**. That's {inviter.invites} for them. You can rewrite it. Placeholders for this message:
{user}mentions the new member. The usual user and server placeholders work too, including{server}for the server name.{inviter}and{inviter.mention}mention the inviter.{inviter.name}is their display name.{inviter.invites}is how many joins that inviter has: the Total figure, including people who have not finished the stay yet. It is not the Stayed number that ranks the leaderboard.{invite.code}is the invite code that was used, which is how you tell a partner link from a member link in the same channel.
When nobody is credited, Voinly sends the Fallback message in the same channel instead. The starting text is {user.mention} joined. I couldn't tell which invite they used. The fallback only has user and server placeholders, because there is no inviter to name. It never says "invited by unknown".
This message is not a welcome message. The greeting, the welcome card and the leave message are set in Welcome messages. The welcome message guide covers those, and Voinly's welcome bot is the feature page. Use one, the other, or both.
Rewards, the leaderboard and corrections
Open the Rewards tab and press "Add reward". Each reward is an Invites number, from 1 to 10,000, and a Role. The empty state suggests a role at 5, 10 or 25 invites. That is an example, not a limit. You can save up to 25 rewards. Two rewards cannot share the same number: the page says "Two rewards use N invites. Change one of them." A reward with no role is refused. The number has to be a whole number from 1 to 10,000.
Rewards use Stayed, not Total. With the default of 24 hours, five people who joined today do not unlock a role set at 5 invites. Five people who are still here after 24 hours do. Voinly's role has to be above the reward role, and it needs Manage Roles. If it cannot give the role, the error log says so. Role order is the same problem the roles guide walks through.
Take the role back if the count drops removes a reward role when Stayed falls below that reward's number. A normal leave does not do that, because a point that already counted stays counted. Stayed falls when a manager takes invites away, or resets them. Leave the switch off if a reward should stay once it is earned.
The Leaderboard tab, and /invites leaderboard in Discord, list inviters best first. The embed title is Top inviters. Each line is the rank, the member, then Total, with Stayed and Left in parentheses, for example 1. @Mika: 12 (9 stayed, 3 left). Ties keep the higher Total first. Ten rows fit on a page, and further pages follow. The same preview is on the settings page, with sample rows labelled Example until someone has a real count.
Everyone can run /invites, /inviter and /invites leaderboard. /invites answers in a private reply: the personal link when personal links are on, and the Stayed count either way. /inviter plus a member names who invited them.
Members with Manage Server can correct a count. /invites add takes a member and a whole number from -10,000 to 10,000. A negative number takes invites away. The added amount is included in both Total and Stayed, then rewards are applied again. /invites reset clears one member, or everyone if you leave the member out. It clears their joins from the counts and sets added invites back to 0. /inviter can still name the inviter from the saved join. If Take the role back if the count drops is on, reset also removes reward roles that are no longer earned. If it is off, the roles stay.
Permissions to check before you test
- Manage Server on Voinly's role, or the dashboard cannot read invites and every join falls through to the fallback message.
- Create Invite on the personal-links channel, only when Count is Only personal links.
- Manage Roles, and Voinly's role above each reward role, or rewards cannot be given.
- Send Messages and View Channel in the join-message channel. Embed Links as well if the message contains an embed.
Voinly's invite does not ask for Administrator. The three permissions above are enough for tracking, personal links and rewards.
Invite tracker troubleshooting
Every join says it could not tell which invite was used
Voinly is missing Manage Server, so it cannot read the invite list. Turn that permission on, then invite a test account with a normal link. A burst of joins can also do this: if several links change at once, or five joins are already being checked, Voinly will not guess.
A member's link did not increase their count
Check Count. In Only personal links, a link they created in Discord does not count. They need the link from /invites. Also check the stay time. A join shows in Total at once and in Stayed only after the hours you set, and only if they are still in the server. The leaderboard and the rewards use Stayed.
The join message number is higher than the leaderboard
{inviter.invites} prints Total. /invites and the rank use Stayed. Right after a join, Total is ahead by the people who have not finished the stay.
No join message was posted
Send a message when someone joins has to be on, a Channel has to be picked, and Voinly has to be able to send messages there. A skipped burst does not post this message either. The welcome message is a different switch, in Welcome messages.
A reward role was not given
The member's Stayed count has to reach the reward's Invites number, Voinly needs Manage Roles, and its role has to sit above the reward role. Up to 25 rewards are allowed. Two rewards on the same number cannot be saved.
/inviter does not know a member who is already here
They joined before Invite tracker was on, the join was skipped in a burst, or no single invite could be matched. Reset does not cause this: /inviter still reads the saved join after a reset. The counts are what reset clears.
Where this fits with the rest of the server
Verification decides whether a new member can see channels. Invite tracking decides who gets credit for bringing them. The two are independent. A verified role is not an invite reward unless you add that role on the Rewards tab. Setup for the gate is the verification guide.
A member count channel shows how big the server is. It does not show who recruited. The member count channel guide is the setup for that sign. Use both when you want the size in the sidebar and the recruiters on a leaderboard.
How to use the commands is on Voinly's invite tracker page, with the same limits. This guide is the settings version: which joins count, the numbers on the leaderboard, and what to check when a join is not credited.
Set up the Discord invite tracker
-
Turn on Invite tracker
Add Voinly, open the dashboard and go to Invite tracker under Server management. Give Voinly Manage Server if the warning at the top asks for it, then press "Turn on Invite tracker".
-
Choose which links count, and the stay
Under Counting, leave Count on All invites, or switch to Only personal links and pick Channel for personal links. Set A join counts after the member stayed. Use 0 to count at once, or keep the default of 24 hours.
-
Write the join message
Turn on Send a message when someone joins, pick the Channel, and edit the Message and the Fallback message. Leave the switch off if you only want the leaderboard.
-
Add reward roles
Open the Rewards tab, press "Add reward", and set Invites and Role for each one. Put Voinly's role above those roles. Turn on Take the role back if the count drops only if a reset or a removed invite should take the role away.
-
Test with a real join
Join with an alt through a normal invite, or run
/invitesand use that link if personal links are on. Run/inviteron the new member and/invites leaderboard. Total should move at once. Stayed moves after the hours you set.
Invite tracker guide commands
| Command | What it does | Who can use it |
|---|---|---|
/invites | Get your personal invite link and see how many members you brought. | Everyone |
/inviter <member> | See who invited a member. | Everyone |
/invites leaderboard | See the members who brought the most people. | Everyone |
/invites add <member> <amount> | Add invites to a member's count. | Manage Server |
/invites reset [member] | Reset one member's invites, or everyone's. | Manage Server |
Frequently asked questions
What is a Discord invite tracker?
Is an invite tracker bot free?
Can it see who invited members who joined before?
/inviter says it does not know when there is no saved row.Why does Voinly say it can't tell which invite was used?
Do members who leave right away count?
How do members get their own invite link?
/invites. Voinly creates one permanent link for them and reuses it. In All invites mode the command only shows their stayed count.Will a reward role be removed when someone leaves?
/invites add with a negative number, should remove roles the member no longer qualifies for.Add Voinly to your server
Every Voinly module is free. The only paid extras are Custom bot and extra AI moderation scans (see pricing). Add it to Discord and set it up from the dashboard.
Add to Discord