> 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 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/pt-br/comandos-do-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.
