> 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/channeltype.md).

# $channelType

Allows you to comment on your code, without the text being included in the bot's response.

### Usage

```php
$channelType[channelID]
```

This function has one param.

| Param     | Description                     | Type      | Required |
| --------- | ------------------------------- | --------- | -------- |
| channelID | The channel to get the type of. | Snowflake | Yes      |

### Examples

**Example #1**

```javascript
bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$channelType[$channelID]` //Returns the current channel's type
})
```

**Example #2**

```javascript
bot.commands.add({
    type: "basicCommand",
    name: "example",
    code: `$channelType[$findChannel[$message]]` //Returns the channel type of the provided channel
})
```
