Overview
The Statistics module lets you convert a channel into a live counter that updates automatically to display key server numbers. Common counters include:- Total members
- Users only / bots only
- Text / voice channels
- Categories
- Boost count
- Pending members
- Total channels
Members: 12,367Bots: 67Text Channels: 128
How it works
This module is database-driven and refreshed using a scheduled task loop.1) When you create a counter
When you run:statistics set <type> <channel>
the bot will:
- Calculate the current value for the chosen counter type.
- Rename the selected channel into a counter format (example:
Members: 12,367). - Store the counter in the database (
countercollection) using:guild_idchannel_idoption(the counter type)last_update
Example: you can’t set two separate
members counters in the same server.
Automatic updates
Every ~10 minutes, the bot:- Loads counter entries that are due for refresh.
- Checks the guild and channel still exist.
- Recomputes the latest value.
- Updates the channel name if needed.
- Handles Discord edit rate limits by deferring updates when necessary.
- Removes invalid entries automatically (deleted channels, missing data, invalid option types).
Requirements
Permissions (bot)
To rename channels, the bot needs:- Manage Channels
- View Channel
Permissions (user)
To configure counters, the user needs:- Manage Channels
Premium requirement
This module is gated behind@premium_guild().
If the server is not premium, Statistics commands will be blocked.
Commands
Base command
The base command is:statistics(aliases:counter,stats)
Create a counter
Remove a counter from a channel
List all counters
Clear all counters
Supported counter types
membersusers_onlybots_onlypending_membersboostsall_channelstext_channelsvoice_channelscategoriesannouncement_channels
Notes & limitations
- Counters update on a schedule (not instant live updates).
- Channel rename operations are rate-limited by Discord; the module automatically delays updates if it hits limits.
- If a counter channel is deleted, the module removes the saved counter entry automatically.