Skip to content

$channelCount

$channelCount will return the amount of channels of a given type.

Usage

$channelCount[guildID?;type?]

Parameters

FieldTypeDescriptionRequired
guildID?numberID of the guild where the channels will be counted from.false
type?stringType you want the amount of to be returned, listed below.false
Channel Types
Channel Type
Text Channel Text
Voice Channel Voice
Category Category
Stage Channel Stage
Private Thread PrivateThread
Public Thread PublicThread
Forum Forum
Announcement Thread AnnouncementThread
Announcement Channel Announcement
Home GuildDirectory
NSFW Channel NSFW
Direct Message DM
All Channel Types all

Example(s)

This will return the amount of Voice Channels in your guild:

1
client.command({
2
name: "channelCount",
3
code: `
4
$channelCount[$guildID;Voice]
5
`
6
});