Interface: CommandPlugin<T>
Type parameters
| Name | Type |
|---|---|
T | extends keyof CommandModuleDefs = keyof CommandModuleDefs |
Hierarchy
↳
CommandPlugin
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: (payload: { absPath: string ; mod: CommandModuleDefs[T] & { description: string ; name: string } }, controller: Controller) => Awaitable<Result<void, void>>
Type declaration
▸ (payload, controller): Awaitable<Result<void, void>>
Parameters
| Name | Type |
|---|---|
payload | Object |
payload.absPath | string |
payload.mod | CommandModuleDefs[T] & { description: string ; name: string } |
controller | Controller |
Returns
Awaitable<Result<void, void>>
Defined in
src/handler/plugins/plugin.ts:39
name
• Optional name: string
Deprecated
will be removed in the next update
Inherited from
Defined in
src/handler/plugins/plugin.ts:31
type
• type: Command