Skip to content

Commit 012adb5

Browse files
authored
docs: document tickets plugin (#46)
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 9fd2aa8 commit 012adb5

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed
107 KB
Loading
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
+++
2+
title = 'Tickets'
3+
weight = 730
4+
+++
5+
6+
<!--more-->
7+
8+
Tickets let your members interact with your server staff in a private and more organized way. The bot will create a
9+
dedicated channel that can only be seen by the staff and the member who created the ticket, with the option to add more
10+
users as-needed.
11+
12+
{{< callout context="note" title="Note" icon="outline/info-circle" >}}
13+
14+
Make sure that the bot has permission to manage channels in the category you want the bot to create tickets in, as well
15+
as permission to send messages in said category, the transcript channels, and the ticket log channel.
16+
17+
{{< /callout >}}
18+
19+
![Tickets configuration interface](tickets-overview.png)
20+
21+
## Commands
22+
23+
See the [Commands](/docs/core/all-commands/#tickets-) page for a listing of all commands. By default, we impose no
24+
restrictions on who can run these commands, though it may be pertinent to restrict sensitive commands such as the
25+
`-tickets close` command to staff members using [Command overrides](/docs/core/command-settings).
26+
27+
## Configuration
28+
29+
At the top of the tickets settings page, you will find a toggle to enable or disable the ticket system in its entirety.
30+
If you wish to disable certain parts, such as the `tickets adduser` command, please use a command override instead.
31+
32+
If you disable the ticket system, the bot will respond with an error message when you try to run ticket-related
33+
commands, unless they are also disabled using command overrides.
34+
35+
### Admin Roles
36+
37+
Individual tickets can be set to an admin-only mode, where only users with these specified roles will be able to view
38+
that ticket channel.
39+
40+
Toggling this mode is done by running `-tickets adminonly` in the ticket's channel. Running the command again will
41+
deactivate the admin-only mode. This may serve useful when handling issues that require a higher level of privacy,
42+
such as complaints about staff members.
43+
44+
Select as many roles as you like---they need not have "Administrator" or similar Discord permissions commonly associated
45+
with the term "admin".
46+
47+
### Mod Roles
48+
49+
These roles will be excluded from viewing tickets that are set to admin-only mode. Select as many as you like---they
50+
need not have "Manage Messages", "Moderate Members" or other Discord permissions commonly associated with the term
51+
"moderator".
52+
53+
Having selected separate roles for moderators and administrators can be useful in larger servers where the two roles
54+
have different responsibilities, but nothing prevents you from selecting the same role for both.
55+
56+
### Ticket Category
57+
58+
The bot uses channels for tickets, and these channels are created in a category of your choosing. This category should
59+
be set up with the necessary permissions for the bot to create channels in it.
60+
61+
{{< callout context="note" title="Note" icon="outline/info-circle" >}}
62+
63+
Discord limits categories to contain at most 50 channels. If you experience a high volume of tickets, consider closing
64+
some or researching alternative bots that handle tickets differently.
65+
66+
{{< /callout >}}
67+
68+
### Ticket Transcripts Channel
69+
70+
This is the channel where text transcripts of tickets will be sent to, given that you activated the option to do so.
71+
This channel does not have to be part of the ticket category you selected further up.
72+
73+
We also provide a separate option to download attachments sent in the ticket, which will be posted as a ZIP archive in
74+
this channel.
75+
76+
To keep admin-only tickets private, you can select a separate transcripts channel for tickets that were closed when they
77+
are in the admin-only mode during closure---if this is not necessary for your server, select the same channel as for the
78+
regular tickets.
79+
80+
### Ticket Status Updates
81+
82+
When a ticket is created or closed, the bot will send a message to this channel to inform your staff about this event.
83+
Selecting "None" will cause the bot to not send these updates.
84+
85+
### Opening Message
86+
87+
This field supports [custom command templating](/docs/reference/templates/syntax-and-data) and will be executed in the
88+
newly created channel whenever a new ticket is created. Feel free to customize this as you see fit.
89+
90+
The default message is the following custom command code:
91+
92+
```yag
93+
{{$embed := cembed `description` (joinStr `` `Welcome ` .User.Mention `
94+
95+
Please describe the reasoning for opening this ticket, include any information you think may be relevant such as proof, other third parties and so on.`
96+
"\n\nuse the following command to close the ticket\n"
97+
"`-ticket close reason for closing here`\n\n"
98+
"use the following command to add users to the ticket\n"
99+
"`-ticket adduser @user`")}}
100+
{{sendMessage nil $embed}}
101+
```
102+
103+
The user-provided reason for opening this ticket is available under the `{{ .Reason }}` template data.

0 commit comments

Comments
 (0)