> For the complete documentation index, see [llms.txt](https://dbd-ts.gitbook.io/dbdts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbd-ts.gitbook.io/dbdts/functions/channelexists.md).

# $channelExists

Returns whether or not the provided channel exists.

### Usage

```php
$channelExists[channelID]
```

This function has one param.

| Param     | Description           | Type      | Required |
| --------- | --------------------- | --------- | -------- |
| channelID | The channel to check. | Snowflake | No       |

### Examples

**Example #1**

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

**Example #w**

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