$channelExists
$channelExists will check if the given channel exists.
Usage
$channelExists[channel]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| channel | string, number | Channel 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:
1client.command({2 name: "channelExists",3 code: `4 $channelExists[general]5 `6});