$channelCount

This function returns the total number of channels present in the server.

Usage: $channelCount[Channel Type (optional)]

You can optionally specify a channel type to count only channels of that specific type. Refer to this list for valid channel types.

Parameters:

  • Channel Type (optional): The type of channel to count. If omitted, the function will count all channels. Valid types can be found in the Channel Types Reference.

Example:

Counts the number of public threads in the server:


Member04/23/2025
!!exec There are $channelCount[threads_public] threads in the server!
Custom Command Bot 04/23/2025
There are 13 threads in the server!
Function Difficulty: Easy
Tags: channel count amount of channels return number