> For the complete documentation index, see [llms.txt](https://tchat.tect.host/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tchat.tect.host/channels/configuration.md).

# Configuration

This module translates chat colors based on the user's permissions.

## General

```yaml
modules:
  # This module allows you to create private channels.
  #
  # Channels module loaded from modules/channels.yml
  channels: true
```

* modules.channels: Enable/disable the module.

***

## Module

```yml
  moderation:
    permission: "tchat.channel.mod"
    format: "&8[&bMod&8] &a%tchat_nick% &7> <message>"
    message-mode: 1
    announce-mode: 2
    limit: 10
```

* permission: This is the permission to join and leave the channel\
  \<permission>.send: The permission to use /channel send \<channel> \<message>
* format: The format for the users inside the channel (or using the send command)
* message-mode: This option is used to specify which players should receive messages from the channel
* announce-mode: This option is used to specify which users should receive notifications from the channel (for example, when a user joins the channel)
* limit: The player limit of the channel

#### Message & Announce mode

* 0 -> visible to all online players
* 1 -> visible to players with channel permission
* 2 -> visible only to players who are in the channel (/channel join)
* 3 -> disabled (no one receives the message/announcement)


---

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

```
GET https://tchat.tect.host/channels/configuration.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.
