> For the complete documentation index, see [llms.txt](https://ticketking.xyz/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ticketking.xyz/docs/es/comandos-del-bot/close.md).

# /close

## Cerrar comando

### Descripción general

El `/close` el comando cierra el ticket actual. Puedes añadir un motivo. Ejecútalo dentro del ticket.

### Uso

```
/close [reason]
```

* **motivo** *(texto opcional)*: Una breve explicación para cerrar el ticket, por ejemplo "Problema resuelto" o "Ya no es necesario".

### Descripción

* **Cerrar el ticket**: Cierra el ticket para que no se puedan enviar más mensajes.
* **Motivo**: El motivo es opcional. Solo se vuelve obligatorio si la opción "Cerrar requiere motivo" está activada. Cuando esa opción está activada y ejecutas `/close` sin un motivo, el bot responde que se requiere un motivo, así que simplemente vuelve a ejecutarlo con uno.
* **Al cerrar**: Se genera una transcripción. Si se establece un canal de registro de tickets cerrados, el bot publica allí un registro con un enlace a la transcripción.

### Cuándo usarlo

* Cuando el ticket se resuelve.
* Cuando el ticket ya no es necesario o se abrió por error.

### Permisos

* Puedes cerrar un ticket si tienes Administrar canales o Administrar servidor, o eres el propietario del servidor, o tienes un rol de soporte autorizado. Administrador también funciona porque incluye esos permisos.
* La persona que abrió el ticket también puede cerrarlo, a menos que la opción "Cerrar requiere rol de soporte" esté activada. Cuando esa opción está activada, solo el personal puede cerrarlo.
* El bot gestiona el canal del ticket para cerrarlo.

### Ejemplos

```
/close
```

Cierra el ticket sin un motivo. Si "Cerrar requiere motivo" está activado, el bot te indica que se requiere un motivo, así que ejecuta `/close reason:"..."` en su lugar.

```
/close reason:"Problema resuelto"
```

Cierra el ticket y registra "Problema resuelto" como motivo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ticketking.xyz/docs/es/comandos-del-bot/close.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
