@hank.chat/types
Version:
23 lines (22 loc) • 995 B
TypeScript
/** [Internal] Kinds of instructions that can be sent to hank plugins. */
export declare enum InstructionKind {
/** Plugin - Plugin entry point. */
Plugin = 0,
/** GetMetadata - Get the plugins metadata. */
GetMetadata = 1,
/** Install - Call the plugins install function. (only happens once) */
Install = 2,
/** Initialize - Call the plugins initialize function. (happens on every load) */
Initialize = 3,
/** Shutdown - Call the plugins shutdown function. (happens on reload, unload, uninstall) */
Shutdown = 4,
/** ChatMessage - Call the plguins chat message handler. */
ChatMessage = 5,
/** ChatCommand - Call the plguins chat command handler. */
ChatCommand = 6,
/** ScheduledJob - Call the plguins scheduled job handler. */
ScheduledJob = 7,
UNRECOGNIZED = -1
}
export declare function instructionKindFromJSON(object: any): InstructionKind;
export declare function instructionKindToJSON(object: InstructionKind): string;