> For the complete documentation index, see [llms.txt](https://docs.elyxir.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elyxir.dev/features/statschannels.md).

# Statistic Channels

This feature allows you to display statistics in Discord using dedicated statistics channels. These statistics include integrations with other features, FiveM status integration, and Discord integration.

#### OBJECTIVES

* [Create a Statistic Channel](#creating-statistics-channels)
* [Edit a Statistic Channel](#editing-statistics-channels)
* [Delete a Statistic Channel](#deleting-statistics-channels)

<figure><img src="/files/lhX4JWSm4fYSywb8MQgf" alt=""><figcaption><p>A snapshot of potential behaviour achievable with our stats channels</p></figcaption></figure>

## Creating Statistics Channels

To create a new statistic channel, after enabling the module you need to run the [`/statschannel create` ](/commands/statschannel/create.md)command. When specifying the [`text` ](/commands/statschannel/create.md#parameters)parameter, in other words the channel name, you can use the following parameters:

<figure><img src="/files/TbRlSTBAw6XgUo1avsyW" alt=""><figcaption><p>You are fully in control of the channel name and formatting, the possibilities are limitless!</p></figcaption></figure>

{% code fullWidth="false" %}

```
{guild.name}               - The name of the discord server
{onlineMembers}            - The number of online members within the Discord server 
{memberCount}              - The total number of members within the Discord server
{withRole:role_id}         - The number of people with a specified role
{onlineRole:role_id}       - The number of online member with a specified role
{fivemPlayers}        *    - Number of active players in the specified FiveM server
{fivemMax}            *    - Player cap for the specified FiveM server
{statusIndicator}     *    - An emoji for the status of the specified FiveM server
{ticketsOpen}              - The number of tickets currently open
{ticketsCount}             - The total number of created tickets in this server
{gangCount}                - The number of gangs within the FiveM server
```

{% endcode %}

{% hint style="info" %}
Parameters marked with `*`  require the [FiveM Integration](/fivem-integration.md) to be configured.
{% endhint %}

## Editing Statistics Channels

You can edit existing statistics channel formats using the [`/statschannel edit`](/commands/statschannel/edit.md)  command. When specifying the [`text` ](/commands/statschannel/edit.md#parameters) parameter, you can use the same parameters as listed above.

## Deleting Statistics Channels

To remove a statistics channel, simply run the [`/statschannel delete`](/commands/statschannel/delete.md) command, specifying the statistics channel you wish to delete.

<figure><img src="/files/N0p5V5nZ5ioPU6jpVoD6" alt=""><figcaption><p><a href="https://zap-hosting.com/deluxe"><strong>Click here to be redirected to our affiliate link!</strong></a></p></figcaption></figure>
