$newTicket
$newTicket
will create a new ticket channel.
Usage
$newTicket[name;msg;categoryID?;returnId?;error?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
name | string | Channel name. | true |
msg | string | Start message. | true |
categoryID? | number | Where to place the channel after creation. | false |
returnId? | boolean | Return the channel ID 1. true 2. false (default) | false |
error? | string | Error to return when something went wrong. | false |
Example(s)
This will create a new ticket:
1client.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:
1client.command({2 name: "newTicket",3 code: `4 $newTicket[ticket-$username;Hello <@$authorID! {newEmbed:{description:<@$authorID> opened a new ticket!}};$channelCategoryID;false;Error!]5 `6});