$parentID

Returns the parent category ID of a channel.

Usages

There are two usages of this function :

Usage #1

Syntax

$parentID

Returns the parent category ID of the current channel.

Example

$nomention
Current category: $parentID

example

Usage #2

Syntax

$parentID[Channel ID]

Returns the parent category ID for given channel ID.

Parameters

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

Example

$nomention
Category ID: $parentID[$mentionedChannels[1]]

grafik