$setChannelTopic
Sets the new channel topic. Bot is automatically rate limited to 10 minutes per name change by the Discord API!

FUNCTION USAGE

  • $setChannelTopic[channelID]
  • $setChannelTopic[channelID;topic]

Properties:

channelID - The channel ID of the channel you're attempting to update the topic of. topic - The new topic of the channel. If 2nd field not defined or left empty, function will leave the channel topic untouched.
Rate limited to 2x per 10 minutes! Bot will not change the topic after the 2nd change to the same channel in the same 10 minutes. No errors will occur during this cooldown. Catch the cooldown with a limiter yourself.
Example: Setting the current channel topic with a 5 minute cooldown.
1
bot.Command({
2
name: "set-channeltopic",
3
code: `
4
$setChannelTopic[$message[1];$messageSlice[>1]]
5
New channel topic: \`$messageSlice[>1]\`
6
$cooldown[300s;Cooldown for {time}]
7
`
8
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: