---
title: "chat"
---

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

# chat

Chat channels — one function per direction.

| Function | Where it goes |
|----------|---------------|
| `chat.say(text)` | Chat message to the server |
| `chat.command(cmd)` | Command to the server (leading `/` optional) |
| `chat.print(t)` | [Text component](/text) or string into your chat, locally |

`print(...)` — standard Lua print, shown in chat with the `[lua]` prefix. Use
`chat.print` for styled text without the prefix.

```lua
chat.command("time set day")
chat.print(text.literal("ready"):color(0x55FF55))
```

Source: https://aesthetic-docs.pages.dev/chat/index.md
