Interface AkairoHandlerEvents<Module, Handler>

interface AkairoHandlerEvents<
    Module extends AkairoModule<Handler, Module, any>,
    Handler extends AkairoHandler<Module, Handler, any>,
> {
    load: [mod: Module, isReload: boolean];
    remove: [mod: Module];
}

Type Parameters

Properties

Properties

load: [mod: Module, isReload: boolean]

Emitted when a module is loaded.

Module loaded.

Whether or not this was a reload.

remove: [mod: Module]

Emitted when a module is removed.

Module removed.