$newTicket
Creates a new ticket.
Syntax
$newTicket[Category ID/Name;No question message;In ticket message;Message to user;Error message;(Ticket number;Return ID of the ticket message?)]
Parameters
-
Category ID/Name
(Type: String || Flag: Emptiable)
: The category to put the ticket channels in. Can be a category ID or name.🧙♂️ Setup the ticket category permissions:
-
No question message
(Type: String || Flag: Emptiable)
: The message that appears in{subject}
when the user doesn’t provide a subject. -
In ticket message
(Type: String || Flag: Emptiable)
: The message that is sent in the new ticket channel. -
Message to user
(Type: String || Flag: Emptiable)
: The message that gets sent in the current channel. -
Error message
(Type: String || Flag: Emptiable)
: The message that gets returned when the ticket can’t be created. -
Ticket number
(Type: Integer || Flag: Optional)
: For custom ticket number. -
Return ID of the ticket message?
(Type: Bool || Flag: Optional)
: Whether you want the ticket message to return its ID.
Subset Functions
You can use these subset functions in $newTicket
:
{subject}
- Returns the ticket subject (user’s message).{channel}
- Mentions the new ticket channel.
Example
$nomention
$newTicket[Tickets;No subject was provided.;Thanks for making a ticket. Please explain your issue in detail so we can help.
Subject: {subject}
User: <@$authorID>;Created ticket! {channel};Failed to make ticket!]