> ## Documentation Index
> Fetch the complete documentation index at: https://docs.razebot.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Invite Tracking & Alt Detection

> Track server invites, invited member lists, active invite codes, alt account filters, and join/leave messages.

# Invite Tracking & Join Logs

<Badge variant="elite">Tier 1: Elite</Badge>

> Track member invitations, detect alt accounts based on age, look up invite codes, and configure custom join & leave announcements.

***

## Commands Overview

| Command       | Aliases       | Syntax                           | Description                                  | Permissions       |
| :------------ | :------------ | :------------------------------- | :------------------------------------------- | :---------------- |
| `.invites`    | `i`           | `.invites [@user \| userID]`     | Shows invite stats for a member.             | None              |
| `.invited`    | —             | `.invited [@user \| userID]`     | Lists members invited by a specific user.    | None              |
| `.inviteinfo` | `invinfo`     | `.inviteinfo [@user \| userID]`  | Displays active invite codes of a user.      | ManageGuild (Bot) |
| `.inviter`    | —             | `.inviter [@user \| userID]`     | Shows who invited a specific member.         | None              |
| `.alternate`  | `alt`, `fake` | `.alternate <subcommand> [days]` | Configures alt account age threshold.        | Administrator     |
| `.set`        | —             | `.set <subcommand> <value>`      | Configures join and leave channels/messages. | Administrator     |
| `.test`       | `testmsg`     | `.test <subcommand>`             | Tests configured join/leave messages.        | Administrator     |
| `.unset`      | —             | `.unset <subcommand>`            | Removes join/leave configurations.           | Administrator     |

***

## Member Invite Statistics

### invites

Check total regular, leave, fake, and bonus invite counts for yourself or a target user.

<Tabs>
  <Tab title="Syntax">
    ```bash theme={null} theme={null}
    .invites [@user | userID]
    ```
  </Tab>

  <Tab title="Examples">
    ```bash theme={null} theme={null}
    .invites
    .invites @User
    ```
  </Tab>
</Tabs>

* **Aliases**: `i`

***

### invited

View a paginated list of all members currently in the guild who were invited by the specified user.

```bash theme={null} theme={null}
.invited @User
```

***

### inviteinfo

Look up active invite vanity/discord.gg links created by a target member in the server.

```bash theme={null} theme={null}
.inviteinfo @User
```

* **Aliases**: `invinfo`
* **Bot Permissions**: `ManageGuild`

***

### inviter

Find out exactly which user generated the invite link that a specific member used to join the server.

```bash theme={null} theme={null}
.inviter @User
```

***

## Alt Account Detection

### alternate

Configure minimum Discord account age requirements to detect alternate or suspicious accounts joining the server.

| Subcommand | Syntax                  | Description                                | Example             |
| :--------- | :---------------------- | :----------------------------------------- | :------------------ |
| `set`      | `.alternate set <days>` | Sets minimum account age threshold in days | `.alternate set 30` |
| `reset`    | `.alternate reset`      | Resets alt detection settings              | `.alternate reset`  |
| `config`   | `.alternate config`     | Views current alt threshold settings       | `.alternate config` |

* **Aliases**: `alt`, `fake`
* **User Permissions**: Administrator

***

## Join & Leave Messages

### set

Configure automated announcement channels and formatted messages for when members join or leave.

| Subcommand     | Syntax                                    | Example                                        |
| :------------- | :---------------------------------------- | :--------------------------------------------- |
| `joinchannel`  | `.set joinchannel <#channel\|channelId>`  | `.set joinchannel #welcome`                    |
| `joinmessage`  | `.set joinmessage {message}`              | `.set joinmessage Welcome {user} to {server}!` |
| `leavechannel` | `.set leavechannel <#channel\|channelId>` | `.set leavechannel #goodbye`                   |
| `leavemessage` | `.set leavemessage {message}`             | `.set leavemessage {user} left the server.`    |

***

### test & unset

<Tabs>
  <Tab title="Test Messages">
    ```bash theme={null} theme={null}
    .test joinmessage
    .test leavemessage
    ```
  </Tab>

  <Tab title="Unset Configurations">
    ```bash theme={null} theme={null}
    .unset joinchannel
    .unset joinmessage
    .unset leavechannel
    .unset leavemessage
    ```
  </Tab>
</Tabs>
