For the complete documentation index, see llms.txt. This page is also available as Markdown.

All commands

The five slash commands the bot adds, and who can run them.

Member Counter adds five slash commands and one right-click entry.

Discord's command picker listing the bot's commands
Type / and pick Member Counter to see the list.

The commands

Command
What it does
Who can run it

List of useful links and other information.

Anyone, also in DMs

Shows related information between you and this bot.

Anyone, also in DMs

Provides an invite link to add the bot.

Anyone, also in DMs

Get the link to configure the bot on the website.

Administrators, in servers only

Set up some basic counters.

Administrators, in servers only

/setup appears in the picker once per subcommand: /setup server, /setup twitch and /setup youtube.

/profile has a second way in: right-click any member and choose Apps > Profile. It is the same command with the same reply.

Everything else happens on the dashboard: creating counters, editing templates, formatting and server settings.

Every reply is ephemeral

Only you see the reply. It is not posted in the channel, and it disappears when you dismiss it or restart Discord. You cannot share one with a message link either, so take a screenshot or send the other person the command to run.

Who can run /configure and /setup

Both are marked as Administrator commands and work only in a server, so by default only administrators see them in the command picker.

A server owner can hand either command to other roles, or restrict it to certain channels, in Server Settings > Integrations > Member Counter.

Languages

Command names, descriptions and replies are translated into 19 Discord languages, and fall back to English (US). The reply follows the language of the person who ran the command.

You can help translate the bot at tolgee.membercounter.app. See How to contribute.

When a command fails

The reply is an error message instead. If the bot recognises the problem it explains it in plain words. Otherwise it shows "Something went wrong, please try again later." with an error ID. Either way a Join support server button is attached, and quoting the error ID gets you help faster. See Troubleshooting.

Technical details
  • The shared handler calls deferReply({ flags: MessageFlags.Ephemeral }) before dispatching to any command.

  • apps/bot/src/i18n.ts holds the locale list: 19 locales (en-US, en-GB, es-ES, es-419, ru, cs, de, tr, el, fi, fr, it, ja, ko, nl, no, pl, sv-SE, zh-CN) served from 17 translation files, because en-GB reuses the en-US file and es-419 reuses es-ES. The default is en-US.

  • A reply uses the invoker's client locale, but the automatic channel updates use the server's preferred locale, so a channel name reads the same for everyone.

  • /configure and /setup only carry Discord's default Administrator permission and are guild-only. The bot itself runs no permission check, so whatever Server Settings > Integrations allows, works.

  • Commands are registered globally at startup. DISCORD_BOT_INSTANCE_DEPLOY_COMMANDS=false skips registration; a server id in that variable registers the commands to that server only.

  • A recognised error is shown as its knownErrors.<CODE> string; anything else falls back to the generic "Something went wrong" message.

  • The error ID is the OpenTelemetry trace id of the interaction span and only the hosted bots produce one. A self-hosted bot shows the literal Error ID: {{ERROR_ID}}; read the bot's own log instead.

Last updated