Docs

Slash commands

Slash commands

Every action creates a numbered case (#1, #2, …) and is posted in the server's mod-log channel. The bot's reply to you is only visible to you, which keeps channels clean.

Durations are written like 30m, 2h, 7d, 1w or 1d12h.

Actions

Command What it does Notes
/ban user [reason] [duration] [notify] Bans the user. Works on people who have left: paste their user ID. With no duration, the ban is permanent.
/unban user [reason] [notify] Lifts a ban. Marks the earlier ban case as lifted.
/kick user [reason] [notify] Removes the user. They can rejoin.
/softban user [reason] [delete_days] [notify] Bans and immediately unbans, deleting the user's recent messages. They can rejoin. Deletes 1 day of messages by default (0–7). Refused if the user is already banned, because the unban would lift that ban.
/timeout user duration [reason] [notify] Discord's built-in timeout: the user can read but not talk. Up to 28 days. The everyday tool.
/untimeout user [reason] [notify] Ends a timeout early.
/mute user [reason] [duration] [notify] Gives the mute role, which hides every channel except the exceptions set in the panel, and takes away their other roles (so no role of theirs can open a channel back up). For severe cases. Needs a mute role first (/setup muterole or the panel). Roles the bot can't remove stay: the Server Booster role and other roles managed by an integration, and roles above the bot's own. Leaving and rejoining doesn't remove it, and roles they're given on the way back in are taken too. Works on someone who isn't in the server (paste their user ID): they're muted the moment they join or rejoin.
/unmute user [reason] [notify] Removes the mute role and gives back the roles the mute took. Set notify:True to DM them the reason. A temporary mute does the same when it ends. If they aren't in the server, they get their roles back when they rejoin. A role that was deleted meanwhile is skipped, and one the bot can no longer give (moved above its role) is named in the mod-log, to give back by hand. Also works on someone who isn't in the server, to cancel a waiting mute.
/warn user reason A formal warning, sent to the user by direct message. If their DMs are closed, staff are told in the mod-log.
/note user reason A staff-only note on the user's record. The user isn't told.

The user gets a direct message for bans, softbans, kicks, timeouts, mutes and warnings, showing the server, the reason, how long it lasts and the case number. To act without telling them, set notify:False (not possible for warnings: a warning nobody receives is a note, so use /note). Unbans, untimeouts and unmutes send one only if you set notify:True. Every case records whether a DM was sent ("DM to user" in the mod-log).

Cleaning up and slowing down a channel

Command What it does Notes
/purge count [user] [contains] [include_pinned] [reason] Deletes the last count messages (1–100) in the channel you use it in. With user, only that person's messages; with contains, only messages whose text contains it (ignoring case). Needs the Purge messages permission (Manage Messages by default). Pinned messages are kept unless include_pinned:True. Discord only bulk-deletes messages less than 14 days old, so older ones are never touched, and with filters the bot looks through at most the last 1,000 messages; the reply says if either cut it short. It isn't a case: it's in the audit log and posted in the mod-log. If the message log is on, it keeps a copy of every message purged, and its Messages deleted post names the moderator who ran /purge.
/slowmode duration [channel] [reason] Sets how long each member waits between messages in a channel (this one unless you choose channel): 10s, 5m, 1h30m and so on, up to 6 hours. off turns it off. Needs the Slowmode permission (Manage Channels by default), and the bot needs Manage Channels there (Manage Threads for a thread). Staff with Manage Messages or Manage Channels aren't slowed down: that's Discord's rule. It isn't a case: it's in the audit log, and posted in the mod-log as Slowmode, naming you. A slowmode changed in Discord's own channel settings is posted the same way.

Channel restrictions

Command What it does Notes
/restrict history user channel [reason] Stops the user reading older messages in one channel. They still see the channel, and new messages while they have it open, but once they reload or switch away those are gone for them too. Needs the Mute permission. It's the user's own channel permission (Read Message History denied), so it works whatever their roles allow, and anything else in their channel permissions, such as a ticket's, is kept. The user isn't told. It isn't a case, so it doesn't show in /history and isn't mirrored: it's in the audit log and posted in the mod-log. The user must be in the server.
/unrestrict history user channel [reason] Lets them read the channel's history again. If their channel permissions allowed reading history before (as tickets often do), that's put back. Works on restrictions made by hand in Discord too, and on someone who has left.

Discord can't show someone only the messages from a certain point on: reading history is all or nothing. To give someone a fresh start with new messages they keep, use a new channel or thread instead.

Looking things up

Command What it does
/case case Shows one case.
/history user Shows the user's record: a timeline of every case, newest first, with the date and time (to the second, in your own time zone), plus a separate Staff notes section with each note in full, pinned notes first (marked 📌; pin them in the panel). Each line starts with its action's emoji (📝 note, 🔨 ban, 🤫 mute, 👢 kick, …), set in the theme.
/removenote case Takes a note off the Staff notes list in /history, for example when it's outdated. The note is never deleted: it stays in the timeline permanently, marked "removed from staff notes", and the removal is posted in the mod-log.
/updatereason case reason [notify] Changes a case's reason. The change is posted in the mod-log. Set notify:True to DM the person the new reason (not possible for notes).

Rules the bot enforces

  • You need the bot permission for the action in this server, or in the main server: from Discord's own permissions, or from role permissions if the server uses them (see Permissions). Admins can do everything.
  • You can't act on yourself, the bot, or the server owner.
  • You (and the bot) can only act on members whose highest role is below yours. This is the same rule Discord itself uses.
  • You can't ban, mute or time out someone who already has an active sanction of that kind. The reply names the case that's in force.
  • Unmute never ends a timeout, and untimeout never ends a mute. They are separate tools.

Server setup

Command What it does
/setup modlog channel Chooses this server's mod-log channel.
/setup muterole [role] Creates (or uses) the mute role and hides every channel from it, except the exceptions. The mute role and its exceptions (channels muted members can still see and read, such as the rules or #why-am-i-muted) can also be set in the panel: Settings → Servers. Tickets someone was added to by name stay visible to them while muted. Afterwards the bot keeps every channel except the exceptions hidden from the mute role by itself (see The mute role).
/setup importbans [confirm] Records the bans already in this server's Discord ban list, made before the bot: a ban case and a staff note each, no DMs, mirrored like other bans. Without confirm:True it only says how many there are and where they'd be copied. See Bans made before the bot.
/setup messagelog [channel] Chooses where edited and deleted messages are posted, with their pictures and videos, and locks the channel so only the bot posts there and staff who can see the message log can read it. Leave channel empty to stop. Needs the messagelog module. See The message log.
/setup alias [name] Gives this server a short name, such as EU, shown on every case instead of its full name, including older cases. Leave name empty to remove it.

Every case shows the server it first happened in: in the mod-log, in /case, on each /history line, and on mirrored entries.

Blocked reaction emojis

Command What it does
/blockemoji add emoji Blocks an emoji (paste the emoji itself, for example 🇮🇱). From then on, anyone reacting with it in any server of the network has the reaction removed, and the mod-log notes who and where.
/blockemoji remove emoji Unblocks it.
/blockemoji list Shows the blocked emojis.

Reactions that were already there before an emoji was blocked are left alone. The bot needs Manage Messages to remove other people's reactions. These commands are for server admins (Administrator permission).

Honeypot

Command What it does
/honeypot set channel Makes a channel the honeypot and posts a warning in it. Anyone who then posts there (except staff) has the message deleted and is softbanned, or whatever action is set on the panel's Auto-mod page.
/honeypot off Stops using the honeypot in this server.
/honeypot status Shows this server's honeypot channel.

Use a channel real members have no reason to post in. Needs the automod module, and Manage auto-mod (by default, Discord's Manage Server). The bot needs Manage Messages there, and the permission for the action (Ban Members for a softban).

Auto-mod's rules are set in the panel or with the API; see configuration.md.

Mirroring

Command What it does
/sync show Shows which actions are mirrored across your servers, and which servers take part.
/sync rule action mirror Turns mirroring of one action on or off for the whole network.
/sync server enabled Takes this server out of mirroring, or puts it back.

See mirroring.md for how it works. Temporary bans and mutes end by themselves when their time is up. These commands are for server admins.

API keys

Command What it does
/apikey create name scopes Creates a key for the REST API, such as cases:read,cases:write. The key is shown once, only to you.
/apikey list Lists the keys, with their scopes and when each was last used.
/apikey revoke id Stops a key working.

For admins only. Needs the api module; see api.md for the scopes.

Are you sure?