> For the complete documentation index, see [llms.txt](https://discortics.com/llms.txt). A consolidated single-file corpus is available at [llms-full.txt](https://discortics.com/llms-full.txt). Markdown versions of documentation and comparison pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://discortics.com/guides/statistics.md).

# Statistics

Discortics tracks messages, voice time, reactions, joins, leaves, levels, economy balances, and invites. New activity normally appears within about 20 seconds.

## View statistics

### Dashboard Setup

1. Open your server's **Home** for a 30-day summary.
2. Open **Statistics** for all-time totals, 7/14/30-day charts, and top users and channels.
3. Open **Leaderboards** for the full top 100 of each ranking.

### Discord Command Setup

1. Run `/statistics` for your own activity, or `/statistics user:@member` for another member.
2. Use the top dropdown to switch between **Messages**, **Voice**, **Reactions Given**, and **Reactions Taken**.
3. Run `/user target:@member` for a member's profile.
4. Run `/info members` for server joins and leaves.
5. Run `/leaderboards` for server rankings.

## Leaderboards

`/leaderboards` opens **Levels (Message)** by default. Use `module:` or the dropdown to switch. `;leaderboard` and `;lb` also work.

| Ranking                                                         | Period options                  |
| --------------------------------------------------------------- | ------------------------------- |
| Levels (Message), Levels (Voice)                                | Overall, Weekly                 |
| Voice Time, Total Messages, Reactions Given, Reactions Received | Overall, Monthly, Weekly, Daily |
| Invites                                                         | Real, Fake, Total, Left         |
| Economy, Messages (top channels)                                | Overall only                    |

The Dashboard's **Leaderboards** page has the same rankings except Invites, showing the top 100. Weekly XP is available there too.

Periods use UTC, and weeks start on Monday. Weekly XP started counting when the feature was enabled, so earlier XP isn't included.

## Prefix shortcuts

`;statistics`, `;stats`, `;stat`, `;msgs`, `;messages`, and `;m` all open your statistics. Add a view and a user:

- **Views:** `msg`, `voice`, `rgiven`, or `rtaken`.
- **Example:** `;stats vc @member` opens Voice for that member.

## How comparisons work

| Where                             | What it compares                                                           |
| --------------------------------- | -------------------------------------------------------------------------- |
| `/statistics` and `/info members` | Today vs yesterday, this week vs last week, this month vs last month (UTC) |
| Dashboard **Home**                | The last 30 days vs the 30 days before                                     |
| `/user`                           | Shows current values with no comparison                                    |

**↑ New** means the previous period was zero. A period in progress can look low against a full one, such as early on a Monday.

## What gets counted

| Statistic            | What counts                                                                                                                     |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Messages**         | New messages from people. Edits don't count                                                                                     |
| **Joins and leaves** | People only, not bots                                                                                                           |
| **Voice time**       | Time a person stays connected                                                                                                   |
| **Spoke for**        | Connected time while not muted or deafened. Discortics doesn't detect audio                                                     |
| **Reactions**        | Reactions added by people. Self-reactions, bots, and bot messages don't count, and removing a reaction doesn't reduce the count |

Message XP and Voice XP are separate from these. See [Levels](/guides/level).

## Reset statistics

You need **Manage Server**. A reset applies to the whole server.

1. Run `/settings reset type:messages`, replacing `messages` with a category below.
2. Check that the confirmation names the right category.
3. Select **Confirm**.

| Type       | What it clears                             | What it keeps                    |
| ---------- | ------------------------------------------ | -------------------------------- |
| `messages` | Server, channel, and member message counts | Message XP, Discord messages     |
| `voice`    | Voice time                                 | Voice XP. Members stay connected |
| `level`    | Member XP and levels                       |                                  |
| `economy`  | Balances, inventories, and marriages       |                                  |
| `invites`  | Invite statistics                          |                                  |

> [!WARNING]
> A statistics reset can't be undone.

To reset one member's XP, use `/xp set user:@member xp:0 track:Both`. To reset selected inviters, use `/settings invites`.

## Commands

| Command                         | What it does                  | Permission    |
| ------------------------------- | ----------------------------- | ------------- |
| `/statistics user:@member`      | View activity and comparisons | None          |
| `/user target:@member`          | View a member's profile       | None          |
| `/info members`                 | View joins and leaves         | None          |
| `/leaderboards`                 | View server rankings          | None          |
| `/rank user:@member`            | View level progress           | None          |
| `/invites user:@member`         | View invite counts            | None          |
| `/economy balance user:@member` | View a balance                | None          |
| `/settings reset type:<type>`   | Reset one category            | Manage Server |

Compare plans and capabilities on the [Discord Server Stats overview](/features/statistics).
