Skip to content

Administration Commands ​

The explanation for all the administration commands available for Invite Tracker.

INFO

All commands on this page require the Administrator permission by default, except /setup, which requires Manage Server.

Invite Administration ​

CommandDescription
/deleteinvite <invite_code>Deletes the specified invite code from your server.
/syncinvites [@user]Synchronizes the uses of your server's invites with the bot, for everyone or for a specific member. You confirm the sync before it runs.
/purge-invite-codes [purge-amount] [maximum-uses] [include-users | exclude-users] [include-channels | exclude-channels]Purges invite codes from your server: every invite code, or only the ones matching the conditions you enter. Mention the members or channels to include or exclude. Up to 1000 invite codes are purged by default. You confirm the purge before it runs.

DANGER

/syncinvites adds the uses of active invites in your server to the invite count of the bot. You should only run this command once (such as when adding the bot to your server), otherwise you will double the invites if run again.

Server Settings ​

CommandDescription
/setupOpens the interactive setup panel: shows whether invite tracking is working and lets you enable join messages by picking a channel. A sample message is posted right away.
/check-permissions [#channel]Checks whether the bot has all the permissions it needs in the specified channel (or the current one) and in the server.
/massban <@user | invite_code>Premium feature. Bans everyone invited by a specific user, or everyone who joined with a specific invite code. You confirm the ban before it runs.
/lockdown start [duration]Premium feature. Manually activates the raid response: pauses server invites and invite crediting and applies your configured response actions for the chosen duration (5 to 120 minutes).
/lockdown endPremium feature. Ends the active lockdown or raid response early and restores paused invites.
/exportleaderboard <leaderboard_type>Premium feature. Exports the invites or messages leaderboard as a downloadable .csv file.
/exportinvitedlist <@user | invite_code | invite_label> [filter_role]Premium feature. Exports the list of members invited by a user, or who joined with an invite code or invite label, as a downloadable .csv file. Add filter_role to only include members who have that role.

INFO

Some of these commands have a cooldown per server to prevent abuse: /syncinvites and /exportleaderboard can be used once every 5 minutes, /massban and /purge-invite-codes once every 3 minutes.

CSV Export Formats ​

Leaderboard Export ​

The /exportleaderboard command exports a CSV file with the following columns:

ColumnDescription
user_idThe Discord user ID
invitesCalculated total invites
regular_invitesNumber of regular/confirmed invites
left_invitesNumber of invites where the invited user left
fake_invitesNumber of invites flagged as fake
bonus_invitesNumber of manually added bonus invites

For message leaderboards, the export includes:

ColumnDescription
user_idThe Discord user ID
messagesTotal number of counted messages

Invited List Export ​

The /exportinvitedlist command exports a CSV file with the following columns:

ColumnDescription
user_idThe Discord user ID of the invited member
joined_atWhen the member joined the server
fakeWhether the invite was flagged as fake
account_created_atWhen the invited member's Discord account was created

Invite Tracker Documentation