# /close

## Close Command

### Overview

The `/close` command closes the current ticket. You can add a reason. Run it inside the ticket.

### Usage

```
/close [reason]
```

* **reason** *(optional text)*: A short explanation for closing the ticket, for example "Issue resolved" or "No longer needed".

### Description

* **Close the ticket**: Closes the ticket so no more messages can be sent.
* **Reason**: The reason is optional. It becomes required only if the "Close Requires Reason" setting is on. When that setting is on and you run `/close` without a reason, the bot replies that a reason is required, so just run it again with one.
* **On close**: A transcript is generated. If a closed-tickets log channel is set, the bot posts a log there with a link to the transcript.

### When to Use It

* When the ticket is resolved.
* When the ticket is no longer needed or was opened by mistake.

### Permissions

* You can close a ticket if you have Manage Channels or Manage Server, or you are the server owner, or you hold an authorized support role. Administrator also works because it includes those permissions.
* The person who opened the ticket can also close it, unless the "Close Requires Support Role" setting is on. When that setting is on, only staff can close.
* The bot manages the ticket channel to close it.

### Examples

```
/close
```

Closes the ticket without a reason. If "Close Requires Reason" is on, the bot tells you a reason is required, so run `/close reason:"..."` instead.

```
/close reason:"Issue resolved"
```

Closes the ticket and records "Issue resolved" as the reason.


---

# 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://ticketking.xyz/docs/bot-commands/close.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.
