$randomChannelID
$randomChannelID
will return a random channel ID of all guilds or of a specific guild.
Usage
$randomChannelID[guildID/global?;type?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
guildID/global? | number | Guild ID or global search. | false |
type? | string | Channel type. | 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 a random channel ID of your guild:
1client.command({2 name: "randomChannelID",3 code: `4 <#$randomChannelID[$guildID;all]>5 `6});