Skip to content

$channelExists

$channelExists will check if the given channel exists.

Usage

$channelExists[channel]

Parameters

FieldTypeDescriptionRequired
channelstring, numberChannel ID or channel name.true

Example(s)

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

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