> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baobun.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Channel

> Utilities for managing and moderating channels and threads.

<Warning>
  `<>` means an argument is required, `[]` means it's optional
</Warning>

### Message time difference

Get the time difference between two messages.

<CodeGroup>
  ```js Syntax theme={null}
  /timediff [message1_id] [message2_id]
  ```
</CodeGroup>

* `message1_id` (text): optional <br />
  The ID of the first message.
* `message2_id` (text): optional <br />
  The ID of the second message.

### Lock a channel or thread

Lock a channel or thread to prevent interaction.

<CodeGroup>
  ```js Syntax theme={null}
  /lock [channel]
  ```
</CodeGroup>

* `channel` (channel | thread): optional <br />
  The channel or thread to lock.
  If not provided, the current channel or thread is used.

### Hide a channel or thread

Hide or archive a channel or thread.

<CodeGroup>
  ```js Syntax theme={null}
  /hide [channel]
  ```
</CodeGroup>

* `channel` (channel | thread): optional <br />
  The channel or thread to hide or archive.
  If not provided, the current channel or thread is used.

### Rename a channel

Rename a channel.

<Note>This command is rate-limited per channel.</Note>

<CodeGroup>
  ```js Syntax theme={null}
  /rename [channel] <name>
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel you want to rename.
  If not provided, the current channel is used.
* `name` (text): required <br />
  The new name for the channel.

### Delete a channel

Delete a channel with confirmation.

<CodeGroup>
  ```js Syntax theme={null}
  /delete [channel]
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel you want to delete.
  If not provided, the current channel is used.

### Nuke a channel

Delete and recreate a channel with confirmation.

<CodeGroup>
  ```js Syntax theme={null}
  /nuke [channel] [delete_after]
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel you want to nuke.
  If not provided, the current channel is used.
* `delete_after` (time): optional <br />
  Time in seconds before deleting the channel.

### Clone a channel

Create a copy of a channel.

<CodeGroup>
  ```js Syntax theme={null}
  /clone [channel]
  ```
</CodeGroup>

* `channel` (channel): optional <br />
  The channel you want to clone.
  If not provided, the current channel is used.

### Move a channel

Move a channel to a different category.

<CodeGroup>
  ```js Syntax theme={null}
  /movech [category] [channel]
  ```
</CodeGroup>

* `category` (category): optional <br />
  The category to move the channel to.
* `channel` (channel): optional <br />
  The channel you want to move.
  If not provided, the current channel is used.
