Skip to main content

Server Tools

Give trusted staff slash commands for member counts, emoji and duplicate-name summaries, single role and voice changes, and capped bulk bans.

Why Use This Feature?

  1. Requires both a trusted role and the matching Discord permission, so a role alone isn't enough to ban, move, or change members.
  2. Asks for confirmation on every command that changes something, so a stray command does nothing.
  3. Caps bulk bans at 25 users and checks the role hierarchy first, so one command can't ban staff or sweep the whole server.
  4. 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 command to your server when the bot connects.

Section (setting)CommandWhat it does
Member count (fetch-members)/stonker-membersShows the member count and how many members the bot has seen
Emoji summary (fetch-emojis)/stonker-emojisLists up to 50 custom emoji names
Duplicate finder (fetch-duplicates)/stonker-duplicatesLists up to 20 display names shared by members the bot has seen
Role manager (role-manager)/stonker-roleAdds or removes one role for one member
Voice tools (voice-tools)/stonker-voiceMoves one member to another voice channel or disconnects them
Bulk ban (bulk-ban)/stonker-bulk-banBans 1 to 25 user IDs
  • Who can run a command — A member needs one of the tool's trusted roles 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 role.
  • Confirmation — /stonker-role, /stonker-voice, and /stonker-bulk-ban have a required confirm option, and they change nothing unless it is true.
  • Hierarchy — /stonker-role refuses roles at or above the bot's highest role, and /stonker-bulk-ban refuses 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

Settings

Each tool appears as its own section, and you configure only the tools you want. At least one tool is required.

FieldDescription
Who can use it (allowed-roles)1 to 25 trusted roles, required for every tool.
Legacy setting base-commandsLegacy prefix command 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

Server tools settings
json
{
  "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 role 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_failed event. 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 role from the example settings, or nobody can run the command.

Changes from the legacy bot

The legacy bot used prefix commands that anyone with an allowed role or the Administrator permission could run, with no limits or confirmation. The rewrite uses slash commands that need a trusted role 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 role for that tool.