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

# $getChannelSlowmode

Gets the slowmode of a channel in seconds, or 0 if there is no slowmode.

### Usage

```php
$getChannelSlowmode[channelID]
```

This function has one param.

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

### Examples

**Example #1**

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

**Example #2**

```javascript
bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$getChannelSlowmode[$mentionedChannels[1;yes]]` //Returns the mentioned channel's slowmode.
})
```
