$parentID[]

Returns the parent category ID for the given channel ID.

Syntax

$parentID[Channel ID]

Parameters

  • Channel ID (Type: Snowflake || Flag: Required): The channel from which to retrieve the category ID.

Example

$nomention
Category: $parentID[$mentionedChannels[1]]
!example bot-commands-1 Category: 612065938715574273

Example

Returns empty if no parent (category) was found:

!example developers Category:

What is this?