Functionalities
Other
$parentChannelID
Returns the category ID of where the channel is located. If left blank, the function will return the category ID of where the the current channel.

FUNCTION USAGE

  • $parentChannelID
  • $parentChannelID[]
  • $parentChannelID[channelID]

Properties:

[] - Leave brackets empty to return the category ID of the current channel. Same as no brackets. channelID - Supply a channel ID for the function to return its category ID location.
Good to know! parent channel = category

Example 1: Returning the categoryID of the current channel.

1
bot.Command({
2
name: "get",
3
code: `
4
$parentChannelID
5
`
6
})
Copied!

Example 2: Returning the categoryID of the specified channel

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