Functionalities
Other
Powered By GitBook
$channelPosition
Returns the raw position of the channel the command was executed in or a specific channel. Raw position starts at the top of the server's channel list.

FUNCTION USAGE

    $channelPosition
    $channelPosition[]
    $channelPosition[channelID]

Properties:

[] - Returns the channel position of the channel the command is executed in. Same as no brackets. channelID - Returns the channel position of the channel of the supplied channel ID
    Bot must be in the server to read the data!
    Now reads channel data globally!

Example 1: Returns the channel position of where the command was executed

1
bot.Command({
2
name: "thischannel-position",
3
code: `
4
$channelPosition
5
`
6
})
Copied!

Example 1: Returns the channel position of a specific channel. Otherwise, bot returns the current channel position.

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