Interface: EventPlugin<K>
Type parameters
| Name | Type |
|---|---|
K | extends keyof CommandModuleDefs = keyof CommandModuleDefs |
Hierarchy
↳
EventPlugin
Properties
description
• Optional description: string
Deprecated
will be removed in the next update
Inherited from
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
| Name | Type |
|---|---|
event | Parameters<CommandModuleDefs[K][``"execute"``]> |
controller | Controller |
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
Defined in
src/handler/plugins/plugin.ts:31
type
• type: Event