Server Tools
Give trusted staff slash commandsA /command members type in Discord's message box for member counts, emoji and duplicate-name summaries, single role and voice changes, and capped bulk bans.
Why Use This Feature?
- Requires both a trusted roleA role allowed to run a bot command and the matching Discord permission, so a role alone isn't enough to ban, move, or change members.
- Asks for confirmation on every command that changes something, so a stray command does nothing.
- Caps bulk bans at 25 users and checks the role hierarchyThe bot can only manage roles below its own top role first, so one command can't ban staff or sweep the whole server.
- Replies only to the person who ran the command, so staff tools stay out of public channels.
How It Works
Each tool you configure adds one slash commandA /command members type in Discord's message box to your server when the bot connects.
| Section (setting) | Command | What it does |
|---|---|---|
Member count (fetch-members) | /stonker-members | Shows the member count and how many members the bot has seen |
Emoji summary (fetch-emojis) | /stonker-emojis | Lists up to 50 custom emoji names |
Duplicate finder (fetch-duplicates) | /stonker-duplicates | Lists up to 20 display names shared by members the bot has seen |
Role manager (role-manager) | /stonker-role | Adds or removes one role for one member |
Voice tools (voice-tools) | /stonker-voice | Moves one member to another voice channel or disconnects them |
Bulk ban (bulk-ban) | /stonker-bulk-ban | Bans 1 to 25 user IDs |
- Who can run a command — A member needs one of the tool's trusted rolesA role allowed to run a bot command and the command's Discord permission: Manage Server for the three summaries, Manage Roles for
/stonker-role, Move Members for/stonker-voice, and Ban Members for/stonker-bulk-ban. The server owner isn't exempt from the trusted roleA role allowed to run a bot command. - Confirmation —
/stonker-role,/stonker-voice, and/stonker-bulk-banhave a requiredconfirmoption, and they change nothing unless it is true. - Hierarchy —
/stonker-rolerefuses roles at or above the bot's highest role, and/stonker-bulk-banrefuses members at or above it. Both also refuse targets at or above the invoker's highest role, unless the invoker owns the server. - Replies — Plain text visible only to the invoker, up to 2,000 characters.
Slash Commands lists every option and reply.
Requirements
- Server Members intentLets the bot see members join, leave, and change — Every tool except the emoji summary needs this privileged intentAn intent you must switch on in the Developer Portal first.
- Guild Voice States intent — The voice tool adds this intent, which needs no switch in the Developer Portal.
- Bot permissions — Ban Members for the bulk ban, Manage Roles for the role tool, and Move Members for the voice tool.
- Install scope — The bot needs the
applications.commandsscope, which the install link on the Connection page includes.
Settings
Each tool appears as its own section, and you configure only the tools you want. At least one tool is required.
| Field | Description |
|---|---|
Who can use it (allowed-roles) | 1 to 25 trusted rolesA role allowed to run a bot command, required for every tool. |
Legacy setting base-commands | Legacy prefix commandAn old !command; slash commands replace it names. Imports keep them, the form hides them, and the bot ignores them. |
Delete the command message (delete-message) | Legacy setting, accepted but ignored. |
Example
{
"fetch-members": { "allowed-roles": [{ "role-id": "223456789012345678" }] },
"role-manager": { "allowed-roles": [{ "role-id": "223456789012345678" }] },
"bulk-ban": { "allowed-roles": [{ "role-id": "223456789012345679" }] }
}
Limits
- Bulk ban — 1 to 25 unique user IDs per command, and up to 7 days of message history to delete.
- Summaries — 50 emoji names and 20 duplicate names per reply.
Troubleshooting
- "You do not have both the configured trusted roleA role allowed to run a bot command and required Discord permission." — The member lacks one of the two, which applies to the server owner too.
- "The command could not be completed. Review the bot logs." — Check the bot log, which often shows a missing bot permission, such as Move Members for the voice tool.
- "Every target must be a valid Discord user ID." — The bulk ban accepts only numeric IDs separated by commas or spaces, not mentions.
- Commands don't appear — Saving makes a running bot reconnect and register its commands, so check that the bot is running, then look in the bot log for that server's
application_command_registration_failedevent. Discord also hides each command from members who lack its permission, until you change that under Server Settings → Integrations. - Example role
000000000000000000— Replace the placeholder trusted roleA role allowed to run a bot command from the example settingsSample values to start a feature you haven't set up, or nobody can run the command.
Changes from the legacy bot
The legacy botThe old v3.4.3 bot that ran from a config.json file used prefix commandsAn old !command; slash commands replace it that anyone with an allowed role or the Administrator permission could run, with no limits or confirmation. The rewrite uses slash commandsA /command members type in Discord's message box that need a trusted roleA role allowed to run a bot command and a Discord permission, acts on one member at a time for roles and voice, and groups duplicates by display name instead of avatar.
If any legacy tool has no allowed-roles, the whole Server tools feature imports turned off until you choose at least one trusted roleA role allowed to run a bot command for that tool.