Skip to main content

Interface: EventPlugin<K>

Type parameters

NameType
Kextends keyof CommandModuleDefs = keyof CommandModuleDefs

Hierarchy

Properties

description

Optional description: string

Deprecated

will be removed in the next update

Inherited from

Plugin.description

Defined in

src/handler/plugins/plugin.ts:33


execute

execute: (event: Parameters<CommandModuleDefs[K][``"execute"``]>, controller: Controller) => Awaitable<Result<void, void>>

Type declaration

▸ (event, controller): Awaitable<Result<void, void>>

Parameters
NameType
eventParameters<CommandModuleDefs[K][``"execute"``]>
controllerController
Returns

Awaitable<Result<void, void>>

Defined in

src/handler/plugins/plugin.ts:82


name

Optional name: string

Deprecated

will be removed in the next update

Inherited from

Plugin.name

Defined in

src/handler/plugins/plugin.ts:31


type

type: Event

Overrides

Plugin.type

Defined in

src/handler/plugins/plugin.ts:81