# /close

## Close Command

### Overview

The `/close` command closes the current ticket channel, optionally with a reason (e.g., “Issue resolved,” “No longer needed,” etc.).

### Usage

```
/close [reason]
```

* **reason** *(optional text)*: A brief explanation for closing the ticket.

### Description

* **Close Ticket**: Closes the ticket channel so no further messages can be sent.
* **Logging**: If configured, logs the reason for closing the ticket in your server’s ticket logs or in a staff channel.

### When to Use It

* Once a ticket’s issue has been resolved.
* If the ticket is no longer needed or was created by mistake.

### Permissions

* By default, only staff or the ticket creator can close a ticket (depending on your bot settings).
* The bot needs permission to manage channels (`Manage Channels`) so it can lock or delete the channel if configured that way.

### Examples

```
/close
```

Closes the ticket without providing a reason.

```
/close "Issue resolved"
```

Closes the ticket and records “Issue resolved” as the reason in logs or channel transcripts.


---

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