Skip to content

$channelTopic

$channelTopic will return the given channel’s topic.

Usage

$channelTopic[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberID of the channel you want it to return the channel topic of.false

Example(s)

This will return the channel topic of the channel where you execute the command in:

1
client.command({
2
name: "channelTopic",
3
code: `
4
$channelTopic[$channelID]
5
`
6
});