Skip to content

$newTicket

$newTicket will create a new ticket channel.

Usage

$newTicket[name;msg;categoryID?;returnId?;error?]

Parameters

FieldTypeDescriptionRequired
namestringChannel name.true
msgstringStart message.true
categoryID?numberWhere to place the channel after creation.false
returnId?booleanReturn the channel ID
1. true
2. false (default)
false
error?stringError to return when something went wrong.false

Example(s)

This will create a new ticket:

1
client.command({
2
name: "newTicket",
3
code: `
4
$newTicket[ticket-$username;Hello <@$authorID>!;$channelCategoryID;false;Error!]
5
`
6
});

This will create a new ticket and send an embed:

1
client.command({
2
name: "newTicket",
3
code: `
4
$newTicket[ticket-$username;Hello <@$authorID>! {newEmbed:{description:<@$authorID> opened a new ticket!}};$channelCategoryID;false;Error!]
5
`
6
});