$channelExists

Returns whether or not the provided channel exists.

Usage

$channelExists[channelID]

This function has one param.

ParamDescriptionTypeRequired

channelID

The channel to check.

Snowflake

No

Examples

Example #1

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$channelExists[kwekdlwe]` //false
})

Example #w

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$channelExists[919345931286110218]` //true
})

Last updated