Skip to content

$setChannelTopic

$setChannelTopic will modify a channel’s topic.

Usage

$setChannelTopic[channelID;topic]

Parameters

FieldTypeDescriptionRequired
channelIDnumberThe ID of the channel whose topic will be modified.true
topicstringContent of the new channel topic.true

Example(s)

This will change the topic of the channel where the command is executed in:

1
client.command({
2
name: "setChannelTopic",
3
code: `
4
$setChannelTopic[$channelID;Hello! This is the new channel topic!]`
5
});