Keystone
Docs menu

Community

Invite tracking

See which invite each member joined with, who invites the most, and give roles for inviting people.

Off by default1 commandFree Set up in the dashboard
On this page

Invite tracking shows which invite each new member joined with, so you can see who brings people in. Members check their own count with /invites user and the top inviters with /invites leaderboard, the inviter appears in your join log, and you can give roles for inviting people. Invite tracking starts off.

Set it up

  1. Open the dashboard, pick your server, then Modules, and turn on Invite tracking.
  2. Make sure Keystone has the Manage Server permission: Discord only shows a server's invites to members and bots that have it.
  3. On the Invite tracking page, choose how new an account can be before its join counts as fake (7 days unless you change it).
  4. Add Role rewards if you want: a role for reaching a number of invites, like @Recruiter at 10.
  5. Click Save.

Invites count from the moment you turn invite tracking on. People who joined before that show as joined before tracking.

How it works

Working out the invite

Discord doesn't say which invite someone used, so Keystone remembers each invite's use count and checks which one went up when a member joins. Joins through your server's vanity link (like discord.gg/yourserver) are recognized too. When two people join at the same moment, or an invite was made and used while Keystone was restarting, Keystone can't always tell, and the join counts as unknown. Bots don't use invites, so they're never counted.

Counting invites

Each member's invites are split three ways:

CountWhat it means
InvitesPeople they invited who are still in the server. This is the number that counts.
LeftPeople they invited who have since left.
FakePeople who joined with an account newer than your limit.

Someone who leaves and comes back only counts once, for whoever invited them the last time, and rejoining with your own invite earns you nothing. Members who left are forgotten 90 days after they left.

Role rewards

When a member reaches a reward's number of invites, Keystone gives them the role. With Take rewards back on, the role goes again if people they invited leave and they drop below the number. Keystone can't hand out roles above its own, roles with staff permissions, or roles managed by an integration.

Welcome messages and the join log

When invite tracking is on, welcome messages can use {inviter} (who invited the member, shown as a mention that doesn't ping them) and {invites} (their invite count, including the new member). If Logging records joins, each join entry says who invited the member and with which invite.

Permissions

Keystone needs Manage Server to see your server's invites, and Manage Roles to hand out reward roles. Its role must be above the reward roles.

Limits

Per serverFreePremium
Invite role rewards525

Commands

<required> and [optional] show what each one takes. Server managers can turn any command off, or change who can use it, on the dashboard's Commands page.

  • /invites

    See who invited whom to this server.

    Needs Everyone

    • /invites user [member]

      See your invites or another member's, and who invited them.

    • /invites leaderboard [page]

      Show the members who invited the most people.

Every command in one place: command reference.

Troubleshooting

Every join says "unknown"

Check that Keystone has Manage Server. Without it Discord hides the server's invites, and Keystone can't tell which one was used. The overview page lists missing permissions.

Someone's count looks too low

Only people still in the server count, and joins from accounts newer than your fake-account limit are counted separately. Invites from before invite tracking was turned on aren't counted at all.

A reward role wasn't given

Make sure Keystone's role is above the reward role in Server Settings → Roles, and that the role doesn't have staff permissions like Administrator or Manage Server.