> 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 dynamically by asking a question.

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

```
GET https://ticketking.xyz/docs/it/comandi-del-bot/close.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
