Skip to content

$channelCategoryID

$channelCategoryID will return the parent of a specific channel.

Usage

$channelCategoryID[channelID?]

Parameters

FieldTypeDescriptionRequired
channelID?numberID of a channel of which you want to retrieve its parent of.false

Example(s)

This will return the category ID of the text channel in where you execute the command:

1
client.command({
2
name: "channelCategoryID",
3
code: `
4
$channelCategoryID[$channelID]
5
`
6
});