Functionalities
Functions
Data
Other
$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

bot.Command({
name: "thischannel-position",
code: `
$channelPosition
`
})

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

bot.Command({
name: "channel",
code: `
$channelPosition[5397459387459384533]
`
})
Copy link