> 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/it/comandi-del-bot/close.md).

# /close

## Comando di chiusura

### Panoramica

Il `/close` il comando chiude il ticket corrente. Puoi aggiungere un motivo. Eseguilo all'interno del ticket.

### Utilizzo

```
/close [motivo]
```

* **motivo** *(testo facoltativo)*: Una breve spiegazione per chiudere il ticket, ad esempio "Problema risolto" o "Non più necessario".

### Descrizione

* **Chiudi il ticket**: Chiude il ticket, così non possono essere inviati altri messaggi.
* **Motivo**: Il motivo è facoltativo. Diventa obbligatorio solo se l'impostazione "La chiusura richiede un motivo" è attiva. Quando tale impostazione è attiva e esegui `/close` senza un motivo, il bot risponde che è necessario un motivo, quindi eseguilo di nuovo aggiungendone uno.
* **Alla chiusura**: Viene generata una trascrizione. Se è impostato un canale di registro dei ticket chiusi, il bot pubblica lì un registro con un link alla trascrizione.

### Quando usarlo

* Quando il ticket è stato risolto.
* Quando il ticket non è più necessario o è stato aperto per errore.

### Permessi

* Puoi chiudere un ticket se hai Gestisci canali o Gestisci server, oppure sei il proprietario del server, oppure disponi di un ruolo di supporto autorizzato. Anche Amministratore funziona perché include questi permessi.
* La persona che ha aperto il ticket può chiuderlo anche lei, a meno che l'impostazione "La chiusura richiede un ruolo di supporto" sia attiva. Quando tale impostazione è attiva, solo lo staff può chiudere.
* Il bot gestisce il canale del ticket per chiuderlo.

### Esempi

```
/close
```

Chiude il ticket senza un motivo. Se "La chiusura richiede un motivo" è attiva, il bot ti dice che è richiesto un motivo, quindi esegui `/close reason:"..."` invece.

```
/close reason:"Problema risolto"
```

Chiude il ticket e registra "Problema risolto" come 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/it/comandi-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.
