$channelCount
$channelCount
will return the amount of channels of a given type.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID? | number | ID of the guild where the channels will be counted from. | false |
type? | string | Type 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: