Mochi Sign in

Support tickets

Mochi opens private Discord text channels for member support. The Tickets dashboard shows open and closed requests. It includes search, staff claims, close reasons, an in-dashboard transcript viewer, and transcript downloads.

Each server has its own ticket numbers, starting at 1. Categories in the same server share this sequence. Settings, history, limits, and staff statistics are tracked per server. Existing records receive numbers in their original order within each server. Existing Discord channel names and saved transcripts keep their original text. Internal record IDs and existing action links remain valid.

Setup

  1. Restart Mochi to load the tickets plugin and its database migration.
  2. Open Tickets in the dashboard. Select your server.
  3. Open Ticket settings. Select the panel channel. Under Ticket categories, add the request types you need, such as Support, Reports, or Appeals. Each type has its own Discord category and support role. A new unconfigured server can also use the default Discord category and support role.
  4. Select New panel under Panel to edit. Set its channel, title, description, and ticket categories. Leave the category selection clear to include all enabled categories. Enable Allow members to open tickets.
  5. Select Save settings, then Publish panel. Repeat with New panel to create more panels. A server can have up to 25 panels, in the same channel or in different channels.

The panel has a category picker when several categories are enabled, or a category button when only one is enabled. By default, members enter a subject, details, and any custom answers. Each category can use only custom questions instead. By default, each member can have one open ticket per server, across all categories. Change this under Rules and automation. A repeated request returns the existing ticket.

To enable slash commands, run the existing bun run deploy-commands command after the update:

New tickets start with the category's Welcome title and Welcome message. The message supports {user}, {channel}, {category}, and {id}. Mochi keeps its own colours and footer. Submitted subject, details, and custom answers appear below the welcome text. The controls appear below the answers. Long answers take priority over welcome text. The optional advanced greeting appears above the welcome text.

Under Rules and automation → Ticket buttons, enable or disable Claim, Unclaim, Close, Request closure, Priority, Elevate, Lower, Raise priority, and Lower priority. Claim, Unclaim, Close, Priority, Elevate, and Lower are on by default. Request closure and the two step-by-step priority buttons are off by default. Existing saved switches remain in effect. New tickets use the selected controls. Disabled controls also stop working in older tickets. Existing messages keep their original text and controls until replaced by a new ticket. Commands and dashboard actions remain available.

Priority opens a private priority selector for support staff. Elevate and Lower change support access using Support escalation levels. They use the same access checks and history as dashboard actions. Configure the support levels before using these buttons. Raising or lowering priority only changes queue priority and priority notifications. Closing from a button requires a reason.

Ticket categories and opening questions

Configure up to 25 ticket categories under Ticket settings → Ticket categories. Each category has a name, short description, destination Discord category, support role, and enabled state. For example, Reports can use a private reports category and a moderator role, while Technical support uses a separate category and team.

Add up to three custom questions with the default questions, or up to five when the default questions are off. Each question has a label, optional answer hint, short, paragraph, or dropdown format, and a required setting. Text questions have minimum and maximum lengths, up to 1,000 characters. Dropdowns have 1 to 25 choices. Under Opening questions, clear Include Subject and How can we help? to use only custom questions. Add at least one custom question before saving. The category name becomes the ticket subject, and the answers appear in the main ticket embed, dashboard, and transcript. The default questions stay enabled for existing categories. The complete form has at most five fields, within Discord's modal limits.

Select Save category, then Publish panel to update the choices in Discord. Disabling or deleting a category blocks new requests for it immediately, including from old panel choices. If every category is disabled or deleted, new tickets cannot be opened. The default route does not become active again automatically.

The current setup is converted to General support when this update starts. Its destination and support role are preserved. Existing panels continue to work with that single category. Publish the panel after adding more categories.

The ticket welcome embed shows Support Team below the opening answers. It lists the category support role and all extra support roles. Each role appears once.

In the category editor, enable Ping support roles to use a Components V2 ticket card. Its Support Team section pings the category support role and all extra support roles. Each role appears once. The card, answers, greeting, and controls use one message. Mochi does not send a separate ping message. The roles must allow mentions, or Mochi must have Mention Everyone permission. Other role mentions, user mentions, @everyone, and @here cannot send notifications. This follows Discord's allowed mention rules.

Ping support roles is on by default for new categories and categories without a saved setting. Turn it off to use a traditional embed without mention notifications. Categories with this setting saved as off keep that choice. This setting applies to new tickets. Existing ticket messages keep their format.

Components V2 has a 4,000-character text limit. If the answers exceed the available space, the card shows an excerpt and attaches the full answers as a text file in the same message. Full answers also remain in the dashboard and transcript metadata. The transcript viewer and HTML export include the card text.

Each ticket records its category name, support role, and question labels and answers at opening. Later edits or category deletion do not change these records. Answers appear in the main ticket embed, dashboard ticket details, and saved transcript metadata. If questions change while a member has a form open, Mochi asks them to open the form again.

Use the category filter above the support queue to narrow the list. Search also matches the recorded category name, including categories that were later deleted.

Permissions and access

Mochi needs View Channel, Manage Channels, and Manage Roles in the ticket category. It needs View Channel, Send Messages, and Embed Links in the panel channel. Transcript export needs View Channel and Read Message History in each ticket channel. Enable the bot's Message Content intent to include member message text.

New ticket channels have explicit permission overwrites. They do not copy public category overwrites. The ticket owner, configured support role, and Mochi receive access. Discord administrators can also access ticket channels because Administrator bypasses channel overwrites. See Discord permissions.

The category support role recorded when a ticket opens remains its support role. Changing settings affects new tickets. Use Manage ticket → Move to category to change an existing ticket’s team and category.

The dashboard requires Manage Server or a role assigned to Tickets under System → Staff access. A ticket support role alone does not grant dashboard access. The dashboard grant covers all server tickets and transcripts. Viewing tickets, reading transcripts, claiming, closing, participant changes, and other actions have separate dashboard permissions. Settings, categories, rules, and panel publishing require Manage Server or Manage ticket setup. Dashboard grants do not add Discord channel permissions.

All ticket API routes require server authorization and an enabled plugin. Dashboard writes also require a session CSRF token. Live events contain only the server ID. Clients reload ticket data through the protected API.

Closing and transcripts

Closing first disables replies, reactions, and thread creation for the ticket owner and recorded support role. Mochi captures the transcript and saves it in SQLite with the closed ticket record. Only then does it delete the Discord channel. The ticket history and transcript remain available in the dashboard. Select Closed, select the ticket, then choose View transcript. Download transcript still exports the saved JSON file.

The saved transcript contains the latest 5,000 messages, up to approximately 2 MB of message data before JSON formatting. It includes message text, embed text, and attachment links. The viewer and export state whether history was truncated. Mochi does not complete closing or delete the channel when capture exceeds this limit. It cannot recover deleted messages. Attachment links can expire; attachment files are not copied.

Open-ticket downloads read the channel at download time. Closed-ticket downloads use the saved snapshot. Later edits and messages do not change that snapshot.

If transcript capture fails after replies are locked, the ticket stays open in the database. Mochi tries to restore replies. Correct the bot permissions and retry closing. Mochi does not delete the channel or report that the transcript was saved.

If channel deletion fails after the transcript is saved, the ticket stays closed and the viewer remains available. The detail panel shows the failure and a Retry channel deletion button. Correct the bot permissions or restore the channel topic (Mochi ticket <id>), then retry. A retry uses the saved transcript and never recaptures the deleted channel. A restart between saving and deletion can leave a closed ticket channel present; use the same button to finish deletion.

Ticket requests, close reasons, and saved transcripts are stored in Mochi's SQLite database. Keep this database on persistent storage and restrict access to its backups. This version has no automatic transcript retention limit.

Operation

Pause Allow members to open tickets to stop new requests while staff finish existing tickets. Old panel buttons check the current settings. Select a panel under Panel to edit to change its channel, title, description, or ticket categories. Save settings, then publish it to update its Discord message. Publishing updates only that panel. Moving or deleting a panel leaves its old message visible, but its old controls no longer open tickets. Delete panel removes the selected panel from the setup. Ticket creation can be paused for all panels with the server setting. The existing panel is preserved when this update starts.

The plugin can be disabled per server from Plugins, or globally through DISABLED_PLUGINS=tickets. Plugin disablement also blocks ticket actions and transcript access. To stop only new requests, pause ticket creation instead.

Ticket operations are serialized per server within one process. Run one Mochi process for a server. The database enforces the configured quota key for new active records. A channel creation interrupted by a restart is reconciled using its ticket topic marker on the next ticket list or open request. A failed opening is kept in history and does not block a later request.

Tickets closed before automatic deletion was added keep their existing channels. The detail panel offers Delete Discord channel for these tickets. Deletion requires a complete saved transcript. A saved closed-ticket transcript remains available after its Discord channel is deleted. An open ticket whose channel was deleted cannot produce a transcript or complete the normal close action.

The transcript viewer uses the same server authorization as the ticket dashboard. It uses a Discord-style layout with message groups, date dividers, author names, timestamps, Markdown, replies, reactions, and embed cards. Message content is rendered with safe DOM nodes, not user HTML. Discord-hosted avatars, custom emoji, and image previews can load in the viewer. Other attachment links open separately. Archived buttons are disabled.

New transcripts also save display names, avatars, role colors, mention names, and structured embeds. Older saved transcripts use their existing author text and embed text. Missing author details cannot be restored after the original channel is deleted.

Ticket controls

Select a ticket, then Manage ticket. Staff can add or remove participants, assign another staff member, release a claim, rename the channel, transfer the ticket, set priority, and request closure. Discord commands provide the same controls:

CommandAction
/ticket unclaimRelease your claim. A server manager can release another staff member’s claim.
/ticket assign user:<member>Assign a member who has ticket staff access.
/ticket add user:<member> staff:<true/false>Add a participant. Staff access also permits ticket controls.
/ticket remove user:<member>Remove a managed participant grant. Role access can still apply.
/ticket rename name:<text>Rename the channel.
/ticket move category:<category>Apply the destination team and private channel permissions.
/ticket priority level:<low/normal/high/urgent>Set priority. Priority changes sort open ticket channels in their Discord category: urgent, high, normal, then low. Tickets stay below all panel channels in the same Discord category. Tickets with equal priority keep their current order.
/ticket request-close reason:<text>Ask the creator to accept closure or keep the ticket open.
/ticket keep-openCancel the current close request and reset inactivity. The creator can also use this command.
/ticket statsShow server ticket statistics. Requires Manage Server.

Transfers preserve managed participants. They replace other channel permission overrides with the destination team’s rules. A claim is released if its staff member loses access. Add up to 20 extra participants per ticket. Direct changes made to Discord permissions are not tracked as managed participants.

A closure request does not close the ticket by itself. Only the creator or staff can accept it. A cancelled or replaced request cannot be accepted later. Staff can still close the ticket directly. Activity history shows the latest 50 recorded actions.

Category access and appearance

In the category editor, open Access, appearance, and priority. You can set:

These options apply to new tickets. Publish the panel to update its category names and emoji. Staff access to an existing ticket uses the roles recorded when it opened or was transferred.

Rules and automation

Open Rules and automation. These settings apply to the selected server. Automatic closing, direct messages, feedback, support hours, and overflow creation are off by default.

Open-ticket limit: Choose one ticket per server, one per ticket category, or no member limit. Existing tickets stay open when the limit changes. A member at the limit gets their current ticket instead of a new channel.

Inactivity: Set a closing interval in hours. Zero disables it. Set a shorter warning period to warn the creator before closing. Zero disables warnings. Human messages and Keep open reset the timer. Bot messages do not. The job runs each minute. New activity during capture cancels automatic closing. Failed automatic actions show an error and have a 15-minute retry delay. Capture limits still prevent channel deletion.

Creator departure: Optionally close tickets when the creator leaves the server. This uses the same transcript and deletion checks. Failed departure actions remain visible for staff to resolve.

Support hours: Optionally restrict opening to a daily start and end time in the selected IANA timezone, for example Europe/Berlin. Overnight hours are supported. Existing tickets remain available outside these hours.

Overflow: Optionally create extra Discord categories when the configured category is full. Set a limit of 1 to 10 extra categories per ticket category. Extra categories copy the base category’s permissions. Ticket channels still use explicit private permissions. Extra categories remain after tickets close.

Priority notifications: Choose roles to notify when staff change a ticket to each priority. The dashboard queue puts urgent and high priority open tickets first.

Transcript messages and feedback

Enable transcript delivery to send the creator a direct message after closing. It contains a static HTML transcript, or JSON if the HTML file exceeds the size threshold. The dashboard also provides Download HTML. The HTML export escapes message text and blocks scripts and external content. The dashboard viewer has the richer Discord-style display.

Enable feedback to include a 1–5 rating selector in the closure message. The creator can add an optional comment. A rating can be submitted once, within 30 days. Turning feedback off or disabling the tickets plugin blocks feedback submission.

Blocked direct messages do not prevent channel deletion after the transcript is saved. The dashboard shows delivery errors. Use Manage ticket → Retry closure DM after the member permits direct messages. Successful delivery is recorded to prevent repeat messages. Ticket transcripts stay available to server managers and assigned dashboard ticket staff.

Staff statistics

Open Staff statistics for claim, unclaim, reply, and close counts. It also shows mean resolution time, mean rating, and review count. Ratings belong to the assigned staff member, or the staff member who closed the ticket when no claim exists. Reply and action counters start with this update. Existing closed-ticket records contribute to close counts and resolution time. Creator closures and automatic closures are excluded from staff close counts.

Support escalation setup

Configure the ordered teams under Ticket settings → Support escalation levels. Manage Server is required for setup. The ticket action still uses the separate Escalate tickets permission. See Feature controls.