$channelTopic

Returns a channel's topic/description.

Usage

$channelTopic[channelID]

This function has one param.

ParamDescriptionTypeRequired

channelID

The channel to get the topic of.

Snowflake

Yes

Examples

Example #1

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$channelTopic[$channelID]` //Returns the topic of the current channel
})

Example #2

bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$channelTopic[$mentionedChannels[1;yes]]` //Returns the topic of the mentioned channel
})

Last updated