Mochi Sign in

Moderation cases

Open Moderation โ†’ Cases in the dashboard. Cases store a member, moderator, action, reason, evidence, result, and history. Numbers start at 1 for each server. Records stay available after a member leaves.

Actions

Use New action to record a warning, apply or remove a timeout, kick a member, ban a user, or remove a ban. The form shows the target user ID, reason, and confirmation before it runs the action. Ban actions do not delete earlier messages.

Warnings are staff records. Mochi does not send a warning DM. Evidence and staff notes are not sent to the member.

Discord commandPurpose
/moderate warn user reason [evidence] [related-case]Record a warning.
/moderate timeout user reason minutes [evidence] [related-case]Apply a timeout from 1 minute to 28 days.
/moderate untimeout user reason [evidence] [related-case]Remove a timeout and record a new case.
/moderate kick user reason [evidence] [related-case]Kick a server member.
/moderate ban user reason [evidence] [related-case]Ban a user, including a user outside the server.
/moderate unban user reason [evidence] [related-case]Remove an existing ban.
/case view numberShow a case and its latest staff notes.
/case history userShow the latest cases for a user.
/case note number textAdd a staff note.
/case evidence number [text] [screenshot] [message-link]Append screenshots, archived messages, or extra evidence to a case.
/case edit number [reason] [evidence]Correct the reason or evidence. Omitted fields stay unchanged.
/case void number reasonMark a case invalid. Requires Manage Server.
/case resolve number result reasonConfirm an uncertain result after checking Discord. Requires Manage Server.

The optional related case must belong to the same server and member. It links the new record to its earlier case. Removing a timeout or ban does not erase the original case.

Staff access

The dashboard requires Manage Server or a role assigned to Moderation under System โ†’ Staff access. Dashboard actions also check the staff member's current Discord permissions. Manage Server alone does not permit a kick, ban, or timeout.

Staff commands initially use the Moderate Members default command permission. Adjust access under Server Settings โ†’ Integrations โ†’ Mochi for staff who use different permission sets. Runtime action checks still apply after command access is granted. Replies are private to the staff member who used the command.

Staff cannot moderate themselves, the server owner, or Mochi. For member actions, the staff member's highest role must be above the target member's highest role. The owner is exempt from that staff role comparison. Mochi must have the required action permission and a higher role for kicks, bans of current members, and timeouts. Discord administrators cannot be timed out.

History and corrections

Search by case number, member name or ID, reason, or moderator ID. Filter by action and result. Member history selects the exact member. Show all members clears that filter.

Select Update case to add a note, correct details, void a case, or confirm a result. Earlier reasons and evidence remain in history. The dashboard shows the latest 500 history events in time order. Concurrent detail changes cause the editor to ask staff to open the form again.

Voiding changes the record only. It does not reverse a Discord action. Use an explicit unban or timeout removal to reverse those actions. Kicks cannot return a user to the server. Voided cases remain visible for review.

Action results and recovery

Mochi saves a pending case before it sends an action to Discord. It records completion only after Discord confirms success. A repeated request ID does not repeat the action. Separate intentional requests create separate cases.

If Discord returns an error or a connection fails, the case records an unconfirmed or failed result. The action might still have reached Discord. A crash after the request can leave a pending case. Mochi does not automatically repeat these actions.

Check the member's current state and the Discord audit log. A server manager can then use Confirm recorded result or /case resolve. This records the verification note and changes the case result. It does not perform another Discord action. Timeout and ban removals have their own case records.

Automatic records

While the moderation plugin runs, new Discord AutoMod actions, successful honeypot softbans, and confirmed global protection bans also create cases. These records report the action already performed by the existing feature. They do not run it again. AutoMod records identify the rule and action type and retain available match context.

Existing historical actions are not imported. Direct Discord actions can be recorded when audit import is enabled. See the import controls below. Automatic records stop when the moderation plugin is disabled. Disabling the plugin also blocks its commands and dashboard API.

Storage and operation

Cases, reasons, evidence, and notes are stored in Mochi's SQLite database. Keep the database and backups on protected persistent storage. This version has no automatic case deletion policy. Voiding retains the record.

Restart Mochi to apply the moderation plugin migration. Deploy slash commands with bun run deploy-commands. Run one Mochi process for a server. Manual case actions are serialized per server in that process. The database also enforces unique server case numbers and request keys.

Reports and appeals

Cases link to their related reports and appeals. Staff can open a linked request from the case details. Approval records a decision and does not reverse the punishment. See Reports and appeals.

Policy settings

Open Cases โ†’ Moderation settings to manage action presets and warning penalties. Manage Server is required. See Feature controls.

Channel controls

Open Moderation โ†’ Channel tools, or use /channel purge, /channel lock, /channel unlock, and /channel slowmode. Each request needs a reason and saves its own case. Choose a text or announcement channel.

Purge checks up to 100 recent messages. It keeps pinned messages and messages older than 14 days. Staff and Mochi need View Channel, Read Message History, and Manage Messages. Deleted messages cannot be restored.

Slowmode accepts 0 to 21,600 seconds. Zero removes the delay. It requires Manage Channels. Lock and unlock also require Manage Roles. A lock denies Send Messages, Add Reactions, Create Public Threads, Create Private Threads, and Send Messages in Threads for @everyone. Explicit role or member grants can still allow these operations. Administrators bypass channel overwrites.

Mochi saves the previous values of those five permissions before locking. Unlock restores only those values. It keeps unrelated overwrites. If someone changes the posting permissions outside Mochi, unlock stops for review. The Channel tools page shows the saved values. Restore those values in Discord, then use Unlock to clear the saved lock. Unconfirmed operations are never repeated automatically.

Channel tools have separate dashboard grants under Staff access. Discord channel permissions are checked on each action. The /channel command initially requires Manage Channels and Manage Messages. Use Discord integration settings to adjust command visibility. Runtime permission checks still apply.

Temporary bans

Use /moderate ban user reason minutes:<duration>. Omit minutes for a permanent ban. The dashboard ban form uses 0 for permanent. Temporary bans support 1 minute to 365 days. The case shows the expiry and timer state.

Timers survive restarts and run about every 30 seconds while the Moderation Cases plugin is enabled. Offline time can delay removal. Before removing a ban, Mochi checks that its reason still matches the original ban marker. A later ban is kept. Changing a case reason does not change the saved marker.

An expired ban creates a linked unban case. If permissions fail or Discord does not confirm removal, the timer stops in Attention. Check Discord and use an explicit unban when appropriate. Resolving an uncertain original ban as Completed also schedules its timer. Voiding a case does not reverse the Discord action.

Import Discord moderation actions

Server managers can enable Cases โ†’ Import Discord moderation actions. It starts disabled. Mochi needs View Audit Log and the Guild Moderation intent.

New kicks, bans, unbans, and timeout changes create completed cases with source discord-audit. Each Discord audit entry can create one case. Actions performed by Mochi use the existing records. Earlier actions and events missed while offline are not imported. This replaces the earlier limitation for newly observed actions performed outside Mochi.

Staff reports

Open Moderation โ†’ Staff reports. Server managers have access. Other staff need the separate View staff reports grant. This grant includes aggregate results from all enabled support and application tools in the server.

Choose 7, 30, or 90 days. Reports show completed cases, current assigned work, closed tickets, application and review decisions, first response times, resolution times, ticket ratings, and appeal decisions. Current workload includes older open items. Completed work uses its completion date. Case counts use the action date.

Response time measures the first recorded staff reply after submission. Resolution time includes time before assignment. Averages include only available samples. Ticket feedback is associated with the closing staff member. Appeal decisions belong to the reviewer; approval does not itself reverse a punishment. Reopened applications and reviews use their current decision. Disabled tools are excluded.