$setChannelPosition
Sets a channels position within the category it is currently in. If a category ID is defined, the category will be repositioned within the guild.

FUNCTION USAGE

  • $setChannelPosition[channelID;number]

Properties:

channelID - The ID of the channel or category to reposition. number - The position number. 1 is defined to be at the top.

Example 1: Repositions the current channel at the top of the current category.

1
bot.Command({
2
name: "test",
3
code: `
4
$setChannelPosition[$channelID;1]
5
`
6
})
Copied!

Example 2: Imagine the 1st field is a categoryID. The category will be repositioned at the top of the channel list.

1
bot.Command({
2
name: "test",
3
code: `
4
$setChannelPosition[328456293842779809;1]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: