# CooldownOptions

`interface` in `services` · v0.7.1

<https://docs.seedcord.org/packages/services/0.7.1/interfaces/cooldown-options>

Configuration options for CooldownManager.

```ts
interface CooldownOptions
```

## Properties

### cooldown

```ts
cooldown: number;
```

Cooldown window in milliseconds (default 1000)

### err

```ts
err: new (msg: string, remaining: number) => Error
```

Custom error class to throw when a key is still cooling down; receives the remaining ms.

### message

```ts
message: string;
```

Message passed to the error constructor (default "Cooldown active")
