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
| Command | Description |
|---|---|
/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
| Command | Description |
|---|---|
/setup | Opens 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 end | Premium 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:
| Column | Description |
|---|---|
user_id | The Discord user ID |
invites | Calculated total invites |
regular_invites | Number of regular/confirmed invites |
left_invites | Number of invites where the invited user left |
fake_invites | Number of invites flagged as fake |
bonus_invites | Number of manually added bonus invites |
For message leaderboards, the export includes:
| Column | Description |
|---|---|
user_id | The Discord user ID |
messages | Total number of counted messages |
Invited List Export
The /exportinvitedlist command exports a CSV file with the following columns:
| Column | Description |
|---|---|
user_id | The Discord user ID of the invited member |
joined_at | When the member joined the server |
fake | Whether the invite was flagged as fake |
account_created_at | When the invited member's Discord account was created |
