Skip to content

Administration Commands

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

Invite Administration

CommandDescription
/deleteinvite <code>Deletes the specified invite code
/syncinvites [@user]Synchronizes the server's invites with everyone or a specific user
/purge-invite-codes [purge-amount] [maximum-uses] [include-users | exclude-users] [include-channels | exclude-channels]Purge invite codes from your server, either every invite code or only ones that fall into the conditions you input.

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
/massban <@user|invite_code>Allows you to ban everyone invited by a specific user or you can choose to mass ban everyone invited by a specific invite code.
/exportleaderboard <leaderboard_type>Allows you to export the invites or messages leaderboard type. This gives you raw data that can be downloaded from a .csv file format.
/exportinvitedlist <@user|invite_code|invite_label|filter_role>Allows you to export a list of the specified type to a downloadable .csv file format. What are Invite Labels? Click here for more info.

INFO

The export commands have a cooldown of 5 minutes to prevent abuse.

CSV Export Formats

Leaderboard Export

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

ColumnDescription
user_idThe Discord user ID
usernameThe user's Discord username
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
total_invitesCalculated total (regular - left - fake + bonus)

For message leaderboards, the export includes:

ColumnDescription
user_idThe Discord user ID
usernameThe user's Discord username
message_countTotal 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
usernameThe invited member's Discord username
joined_atWhen the member joined the server
invite_codeThe invite code used (if known)
inviter_idThe Discord user ID of the inviter
inviter_usernameThe inviter's Discord username
is_fakeWhether the invite was flagged as fake

Invite Tracker Documentation