# Channel

## /channel info

This command shows information about a text channel in the server. If none is provided, the message channel is used.

```
/channel info [channel]
```

## /channel recreate

This command clones a channel and deletes the original copy.

{% hint style="warning" %}
The bot needs Manage Channels permission to execute this command.
{% endhint %}

```
/channel <channel>
```

## /channel lock

Lock a channel. If you don't have "regular" permissions, this probably won't work, as it disabled the ability for the @everyone role to write in the current channel.

{% hint style="warning" %}
Author and bot both require Manage Channel and Manage Role permissions to execute this command.
{% endhint %}

```
/channel lock [channel]
```

## /channel unlock

Unlock a channel. Allows the @everyone role to write in that channel again.

{% hint style="warning" %}
Author and bot both require Manage Channel and Manage Role permissions to execute this command.
{% endhint %}

```
/channel unlock [channel]
```

## /channel clear

Delete messages in that channel. Also displays how many messages per user have been deleted.

{% hint style="warning" %}
Bot requires Manage Messages and Read Message History to execute this command and the author requires Manage Messages permission to execute this command.
{% endhint %}

```
/channel clear <amount> [channel]
```

## /channel name

Rename a channel.

{% hint style="warning" %}
Bot requires Manage Channels to execute this command and the author requires Manage Channels to execute this command.
{% endhint %}

```
/channel name <string: name> [channel]
```


---

# Agent Instructions: 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:

```
GET https://docs.managebot.xyz/command-categories/channel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
