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

# Channel

> The channel a message is posted in or about.

| Variable | Output |
| - | - |
| `{channel}` | Mention of the channel (same as `{channel.mention}`) |
| `{channel.mention}` | Mention of the channel |
| `{channel.name}` | Channel name |
| `{channel.id}` | Channel ID |
| `{channel.topic}` | Channel topic · empty if none |

Useful in a rules card, where a button can point at the channel:

```text theme={null}
{container}{heading: Need help?}{content: Staff answer here.}{button: label: Open && url: https://discord.com/channels/{guild.id}/{channel.id}}
```

The channel is the one the message is sent in, so the same script reused across channels resolves to
each channel separately.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.