# Tickets

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fglxe4R6V0cTnjDYhBe7W%2Fimage.png?alt=media&#x26;token=90c65cb6-f700-4f45-a691-877e3fb0d739" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Some of the features of this module require a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function. You can however use the module with a free subscription.
{% endhint %}

With the [Tickets](https://dashboard.botghost.com/dashboard/module/4393a6b8-0282-47fe-a7a9-a58584943e82/tickets) module you can setup a system that allows users to privately contact a role in your server through a temporary channel. Users can create tickets, close tickets, and more. Your server's moderators may add or remove users from your server's tickets.

## Settings

Here you can find the settings for the Tickets module and modify them to your liking.

### Panels

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F5hUm4lqorNuJzhTDQ8Yu%2Fimage.png?alt=media&#x26;token=f4e4dc6d-35a9-4927-8867-ae798cc8a849" alt=""><figcaption></figcaption></figure>

#### **Manager Roles**

Here you may choose roles from your server which will have access to [#ticket-setup](#ticket-setup "mention").

#### **Embeds Color**

Here you may choose the color of all embeds in the panel messages.

#### Cooldown

Here you may choose the number of seconds users must wait between creating tickets. The minimum number of seconds you can make this cooldown is 10.

### Create a Panel

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FcbyBaK8jOb8jrqBpZutJ%2Fimage.png?alt=media&#x26;token=c3c54860-8549-46b7-83be-54a1eacd815a" alt=""><figcaption></figcaption></figure>

Here you may setup a ticket panel that can be sent to a channel in your server using the `/ticket setup` command. Use the settings below to customize the panel, then click "Add" to save the panel. The new panel will appear in [#active-panels](#active-panels "mention").

{% hint style="warning" %}
To add more than one panel, you need a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans).
{% endhint %}

#### Panel Name

Here you may choose the name of the panel. This will be used to identify it during setup, transcripts, and automations, and can only contain letters and numbers.

#### Panel Message

Here you may customize a plain text or embed message that will be sent to the channel in which the panel is setup, along with a button to create a ticket. All [#variables](#variables "mention") can be used.

#### Layout

Here you may choose whether users can create a ticket with a [button](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button "mention") or a [select-menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu "mention"). Your choice will be attached to the [#panel-message](#panel-message "mention").

#### Button Color

Here you may choose the color for your button, which will show in the background of the [#button-select-menu-label](#button-select-menu-label "mention") text you customized. *The* [#button-color](#button-color "mention") *setting is only visible if* [#layout](#layout "mention") *is set to Button.*

#### Select Menu Placeholder

Here you may customize the text that is displayed before selecting an option from your select menu. *The* [#select-menu-placeholder](#select-menu-placeholder "mention") *setting is only visible if* [#layout](#layout "mention") *is set to Select Menu.*

#### Button / Select Menu Label

Here you may customize the text users will click to create a ticket, which will be shown on the [#layout](#layout "mention") option you chose.

#### Select Menu Description

Here you may customize the text that will be displayed below the [#button-select-menu-label](#button-select-menu-label "mention") in your select menu. *The* [#select-menu-description](#select-menu-description "mention") *setting is only visible if* [#layout](#layout "mention") *is set to Select Menu.*

#### Emoji

Here you may choose the emoji, if any, should be displayed to the left of the [#button-select-menu-label](#button-select-menu-label "mention") text you customized.

#### Connected Panels

Here you may choose the names of the panels that should have their ticket creation button or select menu included on this panel. Use a name from the ones you created in the [#active-panels](#active-panels "mention") settings. Do not include the # or the number that follows it at the end.

#### Support Roles

Here you may choose roles from your server which will have access to all created tickets on this panel, even when they're closed.

#### Blacklisted Roles

Here you may choose roles from your server which cannot create tickets on this panel.

#### Send Form

Here you may toggle whether or not to send a form or modal which will allow users to answer up to two questions with text responses before creating a ticket.

#### Question 1 Type

Here you may choose the size of the input box for the first question in the form or modal. *The* [#question-1-type](#question-1-type "mention") *setting is only visible if* [#send-form](#send-form "mention") *is toggled on.*

#### Question 1 Text

Here you may customize the label for the first question in the form or modal. *The* [#question-1-text](#question-1-text "mention") *setting is only visible if* [#send-form](#send-form "mention") *is toggled on.*

#### Question 2 Type

Here you may choose the size of the input box for the second question in the form or modal, or choose None if you would not like to add a second question. *The* [#question-2-type](#question-2-type "mention") *setting is only visible if* [#send-form](#send-form "mention") *is toggled on.*

#### Question 2 Text

Here you may customize the label for the second question in the form or modal, or leave it empty if you would not like to add a second question. *The* [#question-2-text](#question-2-text "mention") *setting is only visible if* [#question-2-type](#question-2-type "mention") *is set to Short Text Input or Long Text Input.*

#### Ticket Name

Here you may customize the channel name for each created ticket on this panel. All [#variables](#variables "mention") that are correctly formatted for [channel names](https://discord.com/community/channel-categories-and-names#title-3) can be used.

#### Ping Support Members

Here you may toggle whether the bot will send a separate message before the [#ticket-creation-message](#ticket-creation-message "mention"), which pings the [#support-roles](#support-roles "mention") you chose. This can also be done using the [{ping} variable](#variables) anywhere in the [#ticket-creation-message](#ticket-creation-message "mention"), if it is a plain text message.

#### Ticket Creation Message

Here you may customize a plain text or embed message that will be sent to tickets that are created on this panel. All [#variables](#variables "mention") can be used.

#### Logging Channel

Here you may choose a channel from your server which will receive logs for ticket creation, closure, reopening, deletion, transcription, automation updates, member additions and removals, and errors from this panel. Leave this option empty to disable logs.

#### DM Ticket Creator

Here you may toggle whether the bot will direct message logs for ticket creation, closure, reopening, and member additions and removals from this panel to the creator of the logged ticket.

#### Ticket Mode

Here you may choose whether tickets will be created as new [text channels](https://support.discord.com/hc/en-us/articles/4412085582359-Text-Channels-Text-Chat-In-Voice-Channels) or as new [private threads](https://support.discord.com/hc/en-us/articles/4403205878423-Threads-FAQ) in an existing text channel.

#### Two Step Close

Here you may choose whether tickets, when closed, will be instantly deleted (off) or will close/lock the ticket to only the [#support-roles](#support-roles "mention") and allow them to use a new set of controls.

#### Open Category

Here you may choose a [category](https://support.discord.com/hc/en-us/articles/115001580171-Channel-Categories-101) from your server which will store closed tickets from this panel. *The* [#open-category](#open-category "mention") *setting is only visible if* [#ticket-mode](#ticket-mode "mention") *is set to Channel.*

#### Close Category

Here you may choose a [category](https://support.discord.com/hc/en-us/articles/115001580171-Channel-Categories-101) from your server which will store closed tickets from this panel. *The* [#close-category](#close-category "mention") *setting is only visible if* [#ticket-mode](#ticket-mode "mention") *is set to Channel.*

#### Channel for Tickets

Here you may choose a channel from your server which will store tickets from this panel. *The* [#channel-for-tickets](#channel-for-tickets "mention") *setting is only visible if* [#ticket-mode](#ticket-mode "mention") *is set to Thread.*

{% hint style="info" %}
To save the panel's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another panel.
{% endhint %}

### Active Panels

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F7zBhBRQBeZP1JzY6w1Nh%2Fimage.png?alt=media&#x26;token=1c96471f-d360-479e-84d0-cf2be13d047c" alt=""><figcaption></figcaption></figure>

When adding a new ticket panel, it and its settings will appear in this section. All ticket panels will be ordered by the number in which they were created. To view, edit, and delete the settings you selected for that panel, simply click the ticket panel you wish to do so for. You can find detailed information about each of the settings in the [#create-a-panel](#create-a-panel "mention") section.

{% hint style="info" %}
To save the edits you made on the ticket panel's settings, you need to click "Edit" in the bottom-right corner of the settings. Additionally, you must re-send the panel with the [#ticket-setup](#ticket-setup "mention") command for the changes to take effect on a panel. You do not need to re-send the panel if it is used only for the [#ticket-create](#ticket-create "mention") command.
{% endhint %}

### /ticket create Command

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FpdRzMoNxoEuLgQojO37n%2Fimage.png?alt=media&#x26;token=5fa23981-5ce5-4857-837d-c9fade44b5ec" alt=""><figcaption></figcaption></figure>

#### /ticket create

Here you may toggle whether [#ticket-create-1](#ticket-create-1 "mention") can be used.

#### Panel Name

Here you may choose the panel that the [#ticket-create-1](#ticket-create-1 "mention") command will follow the settings for and contribute to its [{panel\_count} variable](#variables). Use a name from the ones you created in the [#active-panels](#active-panels "mention") settings. Do not include the # or the number that follows it at the end.

#### Channel Restrictions

Here you may customize channel restrictions to allow the usage of the [#ticket-create](#ticket-create "mention") command only in certain channels. Below you can find detailed information about each restriction type and how it can be used.

| Restriction Type              | Restriction Details                                                                                                     |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| No channel restrictions       | Users will be able to use the command everywhere.                                                                       |
| Disable for these channels... | Set this blacklist type if you want the command to work in all channels except the channels provided in the menu below. |
| Enable for these channels...  | Set this blacklist type if you want the command to work only in the channels provided in the menu below.                |

#### Role Restrictions

Here you may customize role restrictions to allow the usage of the [#ticket-create](#ticket-create "mention") command only to certain roles. Below you can find detailed information about each restriction type and how it can be used.

| Restriction Type              | Restriction Details                                                                                                                            |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| No role restrictions          | Everyone will be able to use the command.                                                                                                      |
| Disable for these channels... | Set this blacklist type if you want the command to work for all users, except users with at least one of the roles provided in the menu below. |
| Enable for these channels...  | Set this blacklist type if you want the command to work only for users with at least one of the roles provided in the menu below.              |

### Transcripts

Here you may setup ticket transcripts for specific panels and manage how they are stored. Use the settings below to customize the transcript, then click "Add" to save the transcript. The new transcript will appear in [#active-transcripts](#active-transcripts "mention").

{% hint style="warning" %}
To add more than one panel, you need a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans).
{% endhint %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fw1IFVKp9IOpM3Dml7CSm%2FScreenshot%202026-01-08%20at%204.00.55%20PM.png?alt=media&#x26;token=0b2f3638-baa5-4a0c-b5ff-3f6d5a40b578" alt=""><figcaption></figcaption></figure>

#### Affected Panels

Here you may choose the names of the panels that will be subject to this transcript. Use a name from the ones you created in the [#active-panels](#active-panels "mention") settings. Do not include the # or the number that follows it at the end.

{% hint style="info" %}
If the same panel name is included in multiple [#active-transcripts](#active-transcripts "mention") that have overriding settings, the first listed transcript will be the one that takes effect.
{% endhint %}

#### Transcript Mode

Here you may choose the format of the tickets' transcripts. Your setting choice will apply to all new transcripts. Below you can find more detailed information about each transcript mode and how to configure them.

{% tabs %}
{% tab title="Web Transcript" %}
A web transcript comes in the form of an HTML file that can be downloaded and easily viewed in a browser.

#### Transcript Theme

Choose between a simple and clean transcript interface or a familiar Discord-styled UI that replicates the channel layout.

#### View and Download Permissions

Protect your transcripts by selecting specific permissions needed to download and access them. More information about each option is provided in the table below.

| Option                   | Details                                                                                                      |
| ------------------------ | ------------------------------------------------------------------------------------------------------------ |
| Creator and Support Team | Allows access to the user that created the ticket as well as the [#support-roles](#support-roles "mention"). |
| Support Team Only        | Allows access only to the [#support-roles](#support-roles "mention").                                        |
| Password                 | Allows access to anyone with a specific password you can set. Password must be at least 6 characters long.   |
| {% endtab %}             |                                                                                                              |

{% tab title="Thread Transcript" %}
A thread transcript is based in a thread in your server and is not saved elsewhere externally.

#### Transcripts Channel

Here you may choose a channel from your server which transcript threads will be stored in. This will only apply to new transcripts.

{% hint style="warning" %}
Be cautious about the [channel permissions](https://support.discord.com/hc/en-us/articles/10543994968087-Channel-Permissions-Settings-101#h_01GJZQKEZB0T21MMFZFZZKVVNG) used in your [#transcripts-channel](#transcripts-channel "mention"). Deleting a channel which contains transcript threads will also delete those transcripts. Additionally, modifying or deleting a thread which contains a transcript will modify or delete that transcript respectively. These changes are permanent and cannot be undone.
{% endhint %}

#### Thread Privacy

Here you may choose who can view transcript threads. Your setting choice will only apply to new transcripts, but any changes to [channel permissions](https://support.discord.com/hc/en-us/articles/10543994968087-Channel-Permissions-Settings-101#h_01GJZQKEZB0T21MMFZFZZKVVNG) will apply to all transcript threads in that channel. Below you can find detailed information about each thread privacy type and how it can be used.

| Option         | Details                                                                                                                                                                                                                                        |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public Thread  | Requires the View Channel permission to be enabled in the [#transcripts-channel](#transcripts-channel "mention") to see the transcript. A link may be sent to that channel when a transcript is created. Recommended for private channels.     |
| Private Thread | Requires the Manage Threads permission to be enabled in the [#transcripts-channel](#transcripts-channel "mention") to see the transcript. This permission also allows users to modify and delete transcripts. Recommended for public channels. |

#### Add Support Members to Transcript

Here you may toggle whether all members with any of the[#support-roles](#support-roles "mention"), if they have the View Channel permission enabled in the [#transcripts-channel](#transcripts-channel "mention"), should have access to and be pinged in the transcript thread when the transcript is created.

#### Add Creator of Ticket to Transcript

Here you may toggle whether the creator of the ticket, if they have the View Channel permission enabled in the [#transcripts-channel](#transcripts-channel "mention"), should have access to and be pinged in the transcript thread when the ticket is deleted.

{% hint style="info" %}
To save the transcript's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another transcript.
{% endhint %}
{% endtab %}
{% endtabs %}

### Active Transcripts

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2Fs8SffypZxDQQsR4KWgBR%2Fimage.png?alt=media&#x26;token=9ac2eefe-c145-4b5f-9dd7-8c4374212b3e" alt=""><figcaption></figcaption></figure>

When adding a new ticket transcript, it and its settings will appear in this section. All ticket transcripts will be ordered by the number in which they were created. To view, edit, and delete the settings you selected for that transcript, simply click the ticket transcript you wish to do so for. You can find detailed information about each of the settings in the [#transcripts](#transcripts "mention") section.

{% hint style="info" %}
To save the edits you made on the ticket transcript's settings, you need to click "Edit" in the bottom-right corner of the settings.
{% endhint %}

### Limits

Here you may setup ticket creation limits for specific panels and manage the amount of created tickets. Use the settings below to customize the limit, then click "Add" to save the limit. The new limit will appear in [#active-limits](#active-limits "mention").

{% hint style="warning" %}
Features in this section are limited to [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) users.
{% endhint %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F2I7qzQCs6JU49Pp5w9Ag%2Fimage.png?alt=media&#x26;token=e0f6bb26-3b09-47a3-a453-508923b049f5" alt=""><figcaption></figcaption></figure>

#### \[👑] Affected Panels

Here you may choose the names of the panels that will be subject to this limit. Use a name from the ones you created in the [#active-panels](#active-panels "mention") settings. Do not include the # or the number that follows it at the end.

{% hint style="info" %}
If the same panel name is included in multiple [#active-limits](#active-limits "mention") that have overriding settings, the first listed limit will be the one that takes effect.
{% endhint %}

#### \[👑] Maximum of Open Tickets

Here you may choose the number of tickets that can be open at the same time. If a ticket is manually deleted, you may need to use the [#ticket-update-counts](#ticket-update-counts "mention") command to update the module's data.

#### \[👑] Maximum of Active Tickets (Open + Closed)

Here you may choose the number of tickets that can exist, while opened or closed, at the same time. If a ticket is manually deleted, you may need to use the [#ticket-update-counts](#ticket-update-counts "mention") command to update the module's data.

#### \[👑] Maximum of Open Tickets by User

Here you may choose the number of tickets that can be open with the same ticket creator at the same time. If a ticket is manually deleted, you may need to use the [#ticket-update-counts](#ticket-update-counts "mention") command to update the module's data.

#### \[👑] Maximum of Active Tickets by User (Open + Closed)

Here you may choose the number of tickets that can exist, while opened or closed, with the same ticket creator at the same time. If a ticket is manually deleted, you may need to use the [#ticket-update-counts](#ticket-update-counts "mention") command to update the module's data.

{% hint style="info" %}
To save the limit's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another limit.
{% endhint %}

### Active Limits

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FQWckFLxxclofngZHEq7x%2Fimage.png?alt=media&#x26;token=0d304146-ad23-431c-9a6c-226f0c76abd8" alt=""><figcaption></figcaption></figure>

When adding a new ticket limit, it and its settings will appear in this section. All ticket limits will be ordered by the number in which they were created. To view, edit, and delete the settings you selected for that limit, simply click the ticket limit you wish to do so for. You can find detailed information about each of the settings in the [#limits](#limits "mention") section.

{% hint style="info" %}
To save the edits you made on the ticket limit's settings, you need to click "Edit" in the bottom-right corner of the settings.
{% endhint %}

### Automations

Here you may setup ticket auto-closure and auto-deletion for specific panels and manage if and when they are triggered. Use the settings below to customize the automation, then click "Add" to save the automation. The new automation will appear in [#active-automations](#active-automations "mention").

{% hint style="warning" %}
Features in this section are limited to [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) users.
{% endhint %}

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FdcEknMTcXN7Z0CfbC70c%2Fimage.png?alt=media&#x26;token=7f1dd714-0ecc-4d44-b5e3-5ce600b658dd" alt=""><figcaption></figcaption></figure>

#### \[👑] Affected Panels

Here you may choose the names of the panels that will be subject to this limit. Use a name from the ones you created in the [#active-panels](#active-panels "mention") settings. Do not include the # or the number that follows it at the end.

{% hint style="info" %}
If the same panel name is included in multiple [#active-automations](#active-automations "mention") that have overriding settings, the first listed automation for that panel will be the one that takes effect.
{% endhint %}

#### \[👑] Action on Leave

Here you may choose what action will be taken if the creator of the ticket leaves the server. You can choose None (does nothing), [Close Ticket](#ticket-close), or [Delete Ticket](#ticket-delete).

#### \[👑] Auto Close

Here you may toggle whether the ticket should automatically be [closed](#ticket-close) after a set number of hours of inactivity.

#### \[👑] Hours of Inactivity

Here you may choose the duration, in hours, of inactivity that should occur before the ticket should automatically be closed. *The* [#hours-of-inactivity](#hours-of-inactivity "mention") *setting is only visible if* [#auto-close](#auto-close "mention") *is enabled.*

#### \[👑] Ignore Inactivity by Supporter

Here you may toggle whether the thread should automatically be closed only if the ticket creator is responsible for the inactivity. *The* [#ignore-inactivity-by-supporter](#ignore-inactivity-by-supporter "mention") *setting is only visible if* [#auto-close](#auto-close "mention") *is enabled.*

#### \[👑] Auto Delete

Here you may toggle whether the ticket should automatically be [deleted](#ticket-delete) after a set number of hours of inactivity.

#### \[👑] Hours of Inactivity

Here you may choose the duration, in hours, of inactivity that should occur before the ticket should automatically be deleted. *The* [#hours-of-inactivity-1](#hours-of-inactivity-1 "mention") *setting is only visible if* [#auto-delete](#auto-delete "mention") *is enabled.*

#### \[👑] Ignore Inactivity by Supporter

Here you may toggle whether the thread should automatically be deleted only if the ticket creator is responsible for the inactivity. *The* [#ignore-inactivity-by-supporter-1](#ignore-inactivity-by-supporter-1 "mention") *setting is only visible if* [#auto-delete](#auto-delete "mention") *is enabled.*

{% hint style="info" %}
To save the automation's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another automation.
{% endhint %}

### Active Automations

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FXX4Rg1YwIyZq381HHf8P%2Fimage.png?alt=media&#x26;token=4186c637-dd37-4561-8b58-a452063e1ef8" alt=""><figcaption></figcaption></figure>

When adding a new ticket automation, it and its settings will appear in this section. All ticket automations will be ordered by the number in which they were created. To view, edit, and delete the settings you selected for that automation, simply click the ticket automation you wish to do so for. You can find detailed information about each of the settings in the [#automations](#automations "mention") section.

{% hint style="info" %}
To save the edits you made on the ticket automation's settings, you need to click "Edit" in the bottom-right corner of the settings.
{% endhint %}

***

## Variables

The Tickets module allows you to use variables to reference data while customizing its [#settings](#settings "mention"), [#commands](#commands "mention"), and [#events](#events "mention"). You can use [Basic Variables](#variables), which are available across BotGhost, and Module Variables, which are available specifically for the Tickets module. Below you can find detailed information about each module variable and how it can be used.

| Variable Reference | Variable Details                                                                                                                                                                                                                                                  |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `{ticket}`         | Returns a channel link to the current ticket                                                                                                                                                                                                                      |
| `{ticket_name}`    | Returns the name of the current ticket                                                                                                                                                                                                                            |
| `{ticket_id}`      | Returns the channel ID of the current ticket                                                                                                                                                                                                                      |
| `{controls}`       | Returns the available [#commands](#commands "mention") to be used in the current ticket                                                                                                                                                                           |
| `{form}`           | Returns the creator's [#send-form](#send-form "mention") responses for the current ticket, if applicable                                                                                                                                                          |
| `{ping}`           | Returns an @mention for all [#support-roles](#support-roles "mention") of the current panel. A notification will not be sent if placed in an embed                                                                                                                |
| `{total_count}`    | Returns the number of created tickets on your bot. You can optionally set a specific number of digits for the variable to return with `{total_count[DIGITS]}`, replacing DIGITS with the number of digits to return. Example: `{total_count[3]}` = `007`          |
| `{panel_count}`    | Returns the number of created tickets on the current panel. You can optionally set a specific number of digits for the variable to return with `{panel_count[DIGITS]}`, replacing DIGITS with the number of digits to return. Example: `{panel_count[3]}` = `007` |

***

## Commands

Here you can find the commands for the Tickets module and modify them to your liking.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FMdqygIlBAQRNVzg7mUYs%2Fimage.png?alt=media&#x26;token=4e4992d5-d814-445f-8533-43883132409a" alt=""><figcaption></figcaption></figure>

<details>

<summary>/ticket setup</summary>

The `/ticket setup` command allows you to send a ticket creation panel to any channel. The [#panels](#panels "mention") settings must be configured in order for the command to run successfully.

For the `panel` option, use a panel name from the ones you created in the [#active-panels](#active-panels "mention") settings. Do not include the # or the number that follows it at the end.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FIJ9djuKAsnDeYnRI7NAn%2Fimage.png?alt=media\&token=03912b34-b1df-4c6a-b570-aa40621043d7)

</details>

<details>

<summary>/ticket create</summary>

The `/ticket create` command allows you to create a ticket on any created panel. The [#ticket-create-command](#ticket-create-command "mention") settings must be configured in order for the command to run successfully.

<img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FNmJSZdMT88qVr8qRlebe%2FTicket%20Create.gif?alt=media&#x26;token=5b5a367f-a22d-4524-aeec-60ba8be137d0" alt="" data-size="original">

</details>

<details>

<summary>/ticket close</summary>

The `/ticket close` command allows you to close the ticket in which it is run in. This will lock the ticket to everyone except staff, allowing staff with a new set of controls to use on the closed ticket.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F74MZdYJ7wPan8Th0XjPk%2Fimage.png?alt=media\&token=097e7cb0-8613-4bc2-ba8c-78e47d6afbdf)

</details>

<details>

<summary>/ticket reopen</summary>

The `/ticket reopen` command allows you to reopen a ticket that was closed with [#ticket-close](#ticket-close "mention"). This will undo all effects of the closure by returning the previous ticket members and controls.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F6JXSXt6eamwmh9IACOru%2Fimage.png?alt=media\&token=aad4bee5-fefb-42ef-b56e-993c28774d99)

</details>

<details>

<summary>/ticket delete</summary>

The `/ticket delete` command allows you to delete a ticket that was closed with [#ticket-close](#ticket-close "mention"). This will permanently delete the channel the ticket was created in. If a ticket is manually deleted, you may need to use the [#ticket-update-counts](#ticket-update-counts "mention") command to update the module's data.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FiKUcT6oMvmzw5iPWsnmC%2Fimage.png?alt=media\&token=1b062ded-d679-4477-97d0-a7df8d18885a)

</details>

<details>

<summary>/ticket add</summary>

The /ticket add command allows you to add a user to an open ticket. The user will be able to see and send messages in the channel.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FLku4DuDg5YHEShNtFXK4%2Fimage.png?alt=media\&token=9370438e-f66f-4bde-951f-3f63bf1ac387)

</details>

<details>

<summary>/ticket remove</summary>

The /ticket remove command allows you to remove a user from an open ticket. The user will no longer be able to see and send messages in the channel.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FFOZfdx48eWV6Auaa4fdT%2Fimage.png?alt=media\&token=353b6839-0235-4271-bac4-4f3f394631e5)

</details>

<details>

<summary>/ticket automation</summary>

The /ticket automation command allows you to edit a ticket's automatic closure and deletion settings based on its recent activity. The [#automations](#automations "mention") settings must be configured in order for the command to run successfully.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FMisxoXXzq7JU0vv5GFjM%2Fimage.png?alt=media\&token=ea43291b-b6bd-49af-9c0e-232ea08767ad)

</details>

<details>

<summary>/ticket update-counts</summary>

The /ticket update-counts command allows you to manage the number value for some of the Tickets [module variables](#variables). Global Counts can be referenced with `{total_count}`, Panel Specific Counts can be referenced with `{panel_count}`, and User Specific Counts are used for user rate limits per panel.

![](https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2F0XHv0n8oNuMMCpVmq0zz%2Fimage.png?alt=media\&token=375c811d-148f-43f7-b0db-d90c2ccdb419)

</details>

#### \[👑] Add Command

The Add Command button allows premium members to create a [Custom Command](https://botghost.com/docs/custom-commands-and-events) which will have access to this module's [#settings](#settings "mention") and [#variables](#variables "mention").

***

## Events

Here you can find the events for the Tickets module and modify them to your liking.

<figure><img src="https://1937909199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lm_hW5MApY3J0lRhi0M%2Fuploads%2FapGTfmynWbbIdX6tIngB%2Fimage.png?alt=media&#x26;token=a7e38956-1b42-49e8-ba8f-700a1c9c1c14" alt=""><figcaption></figcaption></figure>

<details>

<summary>Inactive Tickets Handler</summary>

The `Inactivity Tickets Handler` event checks for inactivity in a ticket, and takes action based on the settings you configured in [#automations](#automations "mention"). This event is linked to the `Tickets Module - Inactivity System Handler` event in the [Timed Messages](https://botghost.com/docs/custom-commands-and-events/events/timed-events) module, which runs on the interval of every hour.

</details>

<details>

<summary>Creator Leaves Handler</summary>

The `Creator Leaves Handler` event checks if the user who created the ticket is still in the server, and if not, it takes action based on the settings you configured in [#automations](#automations "mention").

</details>

<details>

<summary>Thread Closure Handler</summary>

The `Thread Closure Handler` event checks if a ticket thread has been closed, and if so, removes the creator and members added with [#ticket-add](#ticket-add "mention") from the ticket.

</details>

<details>

<summary>Transcripts Handler - New Messages</summary>

The `Transcripts Handler - New Messages` event adds new messages from tickets to their saved transcripts.

</details>

<details>

<summary>Transcripts Handler - Updated Messages</summary>

The `Transcripts Handler - Updated Messages` event updates edited messages from tickets to their saved transcripts.

</details>

<details>

<summary>Transcripts Handler - Deleted Messages</summary>

The `Transcripts Handler - Deleted Messages` event removes deleted messages from tickets to their saved transcripts.

</details>

#### \[👑] Add Event

The Add Event button allows premium members to create a [Custom Event](https://botghost.com/docs/custom-commands-and-events) which will have access to this module's [#settings](#settings "mention") and [#variables](#variables "mention").

***

{% hint style="danger" %}
It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.

Additionally, a copy of the edited commands / events will be created if you update the module.
{% endhint %}
