Skip to content

$guildChannelExists

$guildChannelExists will check if a given guild channel exists.

Usage

$guildChannelExists[guildID;channelResolver]

Parameters

FieldTypeDescriptionRequired
guildIDnumberID of the guild where the guild channel exists in.true
channelResolvernumber, stringID or name of the channel.true

Example(s)

This will check if a guild channel with the name rules exists, alternatively, you could use the channel ID instead:

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