Skip to content

$allChannelsCount

$allChannelsCount will return the amount of all cached channels of a given type.

Usage

$allChannelsCount[type?]

Parameters

FieldTypeDescriptionRequired
type?stringType you want the amount of to be returned.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: "allChannelsCount",
3
code: `
4
$allChannelsCount[Voice]
5
`
6
});