Skip to content
sern

PluginType

A bitfield that discriminates plugins

Example

1
export default function myPlugin() : EventPlugin<CommandType.Text> {
2
//highlight-next-line
3
type : PluginType.Event,
4
execute([ctx, args], controller) {
5
return controller.next();
6
}
7
}

Enumeration Members

Control

Control: 2

The PluginType for EventPlugins

Source

src/core/structures/enums.ts:85


Init

Init: 1

The PluginType for InitPlugins

Source

src/core/structures/enums.ts:81