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

FUNCTION USAGE

  • $setChannelName[channelID;name]

Properties:

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