Files
website/docs/api/namespaces/Sern.md
Jacob Nguyen 49a910f90a fix docs build
2023-06-30 21:56:51 -05:00

63 lines
998 B
Markdown

---
id: "Sern"
title: "Namespace: Sern"
sidebar_label: "Sern"
sidebar_position: 0
custom_edit_url: null
---
## Variables
### controller
`Const` **controller**: `Object`
**`Since`**
1.0.0
The object passed into every plugin to control a command's behavior
#### Type declaration
| Name | Type |
| :------ | :------ |
| `next` | () => `OkImpl`<`void`\> |
| `stop` | () => `ErrImpl`<`void`\> |
#### Defined in
[src/handler/sern.ts:115](https://github.com/sern-handler/handler/blob/941e1ea/src/handler/sern.ts#L115)
## Functions
### init
**init**(`maybeWrapper`): `void`
**`Since`**
1.0.0
**`Example`**
```ts title="src/index.ts"
Sern.init({
commands: 'dist/commands',
events: 'dist/events',
})
```
#### Parameters
| Name | Type |
| :------ | :------ |
| `maybeWrapper` | [`Wrapper`](../interfaces/Wrapper.md) \| ``"file"`` |
#### Returns
`void`
#### Defined in
[src/handler/sern.ts:27](https://github.com/sern-handler/handler/blob/941e1ea/src/handler/sern.ts#L27)