Kharat Bot Docs

Tickets

Panel buttons, departments, claiming, transcripts and logging — the complete support ticket flow.

The tickets module gives each server a support panel with private channels, staff claiming, transcripts and per-department routing.

Set up the panel#

  1. Configure the panel on the dashboard (fields) or with slash commands.
  2. Publish it: run /ticket panel (optionally with a target channel — Manage Server or Administrator required). The panel posts one message with a Open Ticket button.
  3. Members click the button; a ticket channel is created in the configured category and only the creator, support roles and the bot can see it.

Every server holds one live panel message; publishing again replaces it.

Departments#

Configure up to ten departments, each with its own label, emoji, description, category and extra support roles. A panel with departments shows:

  • one button per department (up to five),
  • a select menu instead when there are more than five departments.

The buttons#

ButtonAction
Open TicketCreates the ticket (honours the max-open-per-user limit)
Claim Ticket / UnclaimStaff-only; marks a staff member as responsible
Close TicketStaff, or the creator when allow user close is on
ReopenRestores a closed ticket
Delete / Confirm deleteTwo-step delete; generates a transcript first

Slash commands#

/ticket carries the full management surface:

SubcommandWhoPurpose
panelManage Server / AdministratorPublish or refresh the panel
claim, unclaimstaffManage responsibility
close, reopenstaff (or creator, per config)Lifecycle
deletestaffTranscript + channel delete
add <member>staff or creatorGive a member access
remove <member>staffRevoke access (creator and bots cannot be removed)
infoanyone in the ticketStatus, creator, opened/claimed/closed times, department

Transcripts#

When transcripts enabled is on, deleting a ticket generates a transcript of the channel history (fetched in pages of 100 messages), posts it to the ticket log channel, and only then deletes the channel. Deleting a channel manually marks the ticket closed too.

Logging#

Ticket opened, closed and reopened events post to the logging channel (green / yellow / green) under their own log keys, and the ticket log channel receives panel and transcript activity. See Logging.