Custom Command
FunctionsChannel Functions

$setChannelTopic

This command allows you to change the topic (also known as the channel description) of a text channel.

Usage

$setChannelTopic[channelID;topic]

Parameters:

  • channelID: The ID of the channel you want to modify. You can use $channelID to refer to the current channel.
  • topic: The new topic you want to set for the channel. This is a text string.

Example

Let's say you want to set the topic of the current channel to "This channel is for memes only!". You would use the following command:

$setChannelTopic[$channelID;This channel is for memes only!]

Explanation:

  • $channelID tells the bot to use the ID of the channel where the command is executed.
  • This channel is for memes only! is the new topic that will be applied to the channel.

Important Notes:

  • Make sure the bot has the necessary permissions to manage the channel. Specifically, it needs the "Manage Channels" permission.
  • The maximum length of a channel topic is limited. Very long topics will be truncated.

Function Cooldown

This function has built-in cooldown. Why? Read more about cooldowns here.

  • Cooldown: 7 minutes
  • Tracked By: Channel ID
  • Type: channelupdate

Functions with the same type share cooldowns based on the same Tracked By value.

On this page