# Management

All management commands require **Administrator** permission.

{% hint style="info" %}
**Reset vs Delete**: `/reset` sets values to 0 (the member stays on the leaderboard). `/delete` removes the database row entirely (the member disappears from the leaderboard).
{% endhint %}

***

## Add

| Command                                  | Description                                                           |
| ---------------------------------------- | --------------------------------------------------------------------- |
| `/add invites <@member> <amount> [type]` | Add invites to a member. Type: `bonus` (default), `fakes`, or `lefts` |
| `/add messages <@member> <amount>`       | Add messages to a member                                              |
| :star2: `/add xp <@member> <amount>`     | Add XP to a member — **Premium only**                                 |

***

## Remove

| Command                                     | Description                                                                |
| ------------------------------------------- | -------------------------------------------------------------------------- |
| `/remove invites <@member> <amount> [type]` | Remove invites from a member. Type: `bonus` (default), `fakes`, or `lefts` |
| `/remove messages <@member> <amount>`       | Remove messages from a member                                              |

***

## Set

| Command                                  | Description                                                          |
| ---------------------------------------- | -------------------------------------------------------------------- |
| `/set invites <@member> <amount> [type]` | Set exact invite count. Type: `bonus` (default), `fakes`, or `lefts` |
| `/set messages <@member> <amount>`       | Set exact message count                                              |

***

## Reset (Individual)

| Command                       | Description                                                 |
| ----------------------------- | ----------------------------------------------------------- |
| `/reset invites <@member>`    | Reset all invite counts (bonus, invites, fakes, lefts) to 0 |
| `/reset messages <@member>`   | Reset message count to 0                                    |
| :star2: `/reset xp <@member>` | Reset XP and level to 0 — **Premium only**                  |

***

## Reset All (Server-wide)

{% hint style="danger" %}
These commands affect **every member** in the server. A confirmation prompt will appear before execution.
{% endhint %}

| Command               | Description                                    |
| --------------------- | ---------------------------------------------- |
| `/reset all invites`  | Reset all invite counts for every member to 0  |
| `/reset all messages` | Reset all message counts for every member to 0 |
| `/reset all xp`       | Reset all XP and levels for every member to 0  |

***

## Delete (Individual)

| Command                      | Description                                              |
| ---------------------------- | -------------------------------------------------------- |
| `/delete invites <@member>`  | Completely remove a member from the invites leaderboard  |
| `/delete messages <@member>` | Completely remove a member from the messages leaderboard |

***

## Delete All (Server-wide)

{% hint style="danger" %}
These commands **permanently delete** all data for every member. A confirmation prompt will appear before execution.
{% endhint %}

| Command                | Description                                             |
| ---------------------- | ------------------------------------------------------- |
| `/delete all invites`  | Delete all invite data for the entire server            |
| `/delete all messages` | Delete all message and level data for the entire server |

***

## Parameters

| Parameter | Range             | Description                                |
| --------- | ----------------- | ------------------------------------------ |
| `member`  | Server member     | The member to modify                       |
| `amount`  | 1 — 1,000,000     | The amount to add, remove, or set          |
| `type`    | bonus/fakes/lefts | The invite type to modify (default: bonus) |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.invite-count.xyz/commands/management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
