# Silence

`class` in `kit` · v0.1.1

<https://docs.seedcord.org/packages/kit/0.1.1/classes/silence>

Throw to stop a handler with no reply and no report.

The framework boundary catches `Silence` before [`Notice`](/packages/kit/0.1.1/classes/notice), makes zero Discord calls, and stops. Ideally you'd only throw this in `EventHandlers` (or `Gates` for those), because it doesn't make sense to leave the user with no reply for an interaction.

```ts
class Silence extends Error
```

## Examples

```ts
import { Silence } from '@seedcord/kit';

// before any reply or defer, drop the interaction with no reply and no report
if (await isBlacklisted(interaction.user.id)) throw new Silence('blacklisted user');
```

## Constructors

### constructor

```ts
Silence(reason?: string | undefined)
```

Constructs a new instance of the `Silence` class

## Properties

### reason

```ts
public readonly reason: string | undefined
```
