# Tickets

## Usage

Allow users to create tickets in your Discord server.

## Setup

Complete the following steps to setup the ticket module.

### Set Config Values for the Discord Server:

* `/config set tickets_category_closed`\
  Closed tickets will go here, before they get deleted.
* `/config set tickets_member_max_tickets`\
  Defines maximum number of tickets per user.
* `/config set tickets_role_support`\
  Allow users with this role to see all tickets.
* `/config set tickets_deletion_time`\
  Closed tickets will be deleted after a specified amount of time. Formats: d, h, m, s\
  Example: `1d`
* `/config set tickets_remind_submitter`\
  The submitter will be reminded to respond if they haven't responded for a day.\
  Example: `true` or `false`
* `/config set tickets_staff_unavailable`\
  Set a message to notify users that no support staff is available. To remove the message just execute the command with an empty message. Requires `tickets_role_support` to be set.

Values can be removed by executing `/config set <option>` without the value.

### Create Ticket Types

* `/config type upsert`\
  Create a ticket type or update an existing type.
* `/config field upsert`\
  Create or update fields that a user has to fill out when submitting a ticket of this type.
* Optional: `/config info create`\
  Allows you to predefine info to request in some cases after the ticket was created.
* Optional: `/config reason create`\
  Allows you to predefine reasons for closing tickets etc.

### Set Ticket Creation Channel

* `/config set tickets_creation_channel`\
  Sends a message in a channel where they can create tickets. Only one channel can be set.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.incredibleplugins.com/discordbridge/modules/tickets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
