# WithChecks

`interface` in `seedcord` · v0.12.0

<https://docs.seedcord.org/packages/seedcord/0.12.0/interfaces/with-checks>

Interface for handlers that can run pre-execution checks

Should always accompany the `@Catchable` decorator. Will require the class to implement the `runChecks` method.

```ts
interface WithChecks
```

## Methods

### runChecks

```ts
async runChecks(): Promise<void>
```

Runs pre-execution checks for the handler.

It'll be called automatically if a class is decorated with [`Checkable`](/packages/seedcord/0.12.0/functions/checkable) before the execute method.

Override this method in your handler classes

## See also

- [Checkable](/packages/seedcord/0.12.0/functions/checkable)
- [Catchable](/packages/seedcord/0.12.0/functions/catchable)
- [EventCatchable](/packages/seedcord/0.12.0/functions/event-catchable)
