Entity Info categoryCount

$categoryCount

Returns the number of categories on the Discord server.

Syntax
$categoryCount

$categoryCount

The $categoryCount function returns the total number of categories present on the Discord server.

Syntax

$categoryCount

Parameters

No parameters.

Return value

Type Description
integer The number of categories on the server.

Examples

Number of categories

$sendMessage[This server has $categoryCount categories.]

Comparison of channels and categories

$sendMessage[
**Server Statistics:**
Categories: $categoryCount
Channels: $channelCount
]

Server without categories

$if[$categoryCount==0]
  $sendMessage[This server has no categories.]
$endif

Notes

  • Only counts channels of type category.
  • Useful for statistics or displaying the server structure.