$setChannelTopic
$setChannelTopic will modify a channel’s topic.
Usage
$setChannelTopic[channelID;topic]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| channelID | number | The ID of the channel whose topic will be modified. | true |
| topic | string | Content of the new channel topic. | true |
Example(s)
This will change the topic of the channel where the command is executed in:
1client.command({2 name: "setChannelTopic",3 code: `4 $setChannelTopic[$channelID;Hello! This is the new channel topic!]`5});