<channel>
Allows you to get any of the information on a channel.
Context
Event | Context |
---|---|
Welcome message | channel is assigned to the chosen Welcome channel. |
Farewell message | server is assigned to the chosen Farewell channel. |
Custom command | server is assigned to the channel where the command was triggered. (not available) |
Syntax
- Input
- Output
This message is being sent in <channel.mention>, and was created on <channel.created>.
Properties
Property | Description | Example |
---|---|---|
name | Get the channel’s name | general |
id | Get the channel’s Discord ID | 843141931504631818 |
created | Get the channel’s creation date | 2021-01-30T13:32:00Z |
mention | Mention the channel using its ID | general |
topic | Get the channel’s topic, or null if none was set | null |
isAgeRestricted | Returns true if the channel is age restricted or false otherwise | false |