$channelCategoryID
Retrieves the ID of the category channel the current channel or a specified channel belongs to.
What it does: This function returns the unique identifier (ID) of the category channel that the channel where the command is executed is in. You can also specify a different channel ID to get its category ID.
Usage:
$channelCategoryID- Returns the category ID of the current channel where the command is used.$channelCategoryID[channelID]- Returns the category ID of the specified channel ID. ReplacechannelIDwith the actual ID of the channel.
Example:
In this example, the command !!exec $channelCategoryID is used in a channel that is within the category channel with the ID 83975894758938799. The bot returns the ID of the category channel.