Files
archived-sern-website/docs/api/interfaces/EventPlugin.md
2022-12-28 22:43:41 +03:00

2.0 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
EventPlugin Interface: EventPlugin<K> EventPlugin 0 null

Type parameters

Name Type
K extends 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
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

Plugin.name

Defined in

src/handler/plugins/plugin.ts:31


type

type: Event

Overrides

Plugin.type

Defined in

src/handler/plugins/plugin.ts:81