> 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/pt-br/comandos-do-bot/close.md).

# /close

## Comando de Fechar

### Visão geral

O `/close` o comando fecha o ticket atual. Você pode adicionar um motivo. Execute-o dentro do ticket.

### Uso

```
/close [reason]
```

* **motivo** *(texto opcional)*: Uma breve explicação para fechar o ticket, por exemplo, "Problema resolvido" ou "Não é mais necessário".

### Descrição

* **Fechar o ticket**: Fecha o ticket para que nenhuma mensagem adicional possa ser enviada.
* **Motivo**: O motivo é opcional. Ele só se torna obrigatório se a configuração "Fechamento Requer Motivo" estiver ativada. Quando essa configuração estiver ativada e você executar `/close` sem um motivo, o bot responde que um motivo é obrigatório; então basta executá-lo novamente com um.
* **Ao fechar**: Uma transcrição é gerada. Se um canal de registro de tickets fechados estiver configurado, o bot publica um registro lá com um link para a transcrição.

### Quando usar

* Quando o ticket for resolvido.
* Quando o ticket não for mais necessário ou tiver sido aberto por engano.

### Permissões

* Você pode fechar um ticket se tiver Gerenciar Canais ou Gerenciar Servidor, ou se for o proprietário do servidor, ou se tiver uma função de suporte autorizada. Administrador também funciona porque inclui essas permissões.
* A pessoa que abriu o ticket também pode fechá-lo, a menos que a configuração "Fechamento Requer Função de Suporte" esteja ativada. Quando essa configuração estiver ativada, apenas a equipe pode fechar.
* O bot gerencia o canal do ticket para fechá-lo.

### Exemplos

```
/close
```

Fecha o ticket sem um motivo. Se "Fechamento Requer Motivo" estiver ativado, o bot informa que um motivo é obrigatório, então execute `/close reason:"..."` em vez disso.

```
/close reason:"Problema resolvido"
```

Fecha o ticket e registra "Problema resolvido" 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 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/pt-br/comandos-do-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.
