mirror of
https://github.com/sern-handler/handler
synced 2026-06-22 07:42:14 +00:00
revert: Move enums to enums.ts
This commit is contained in:
@@ -14,20 +14,21 @@
|
||||
import type { Awaitable, Client } from 'discord.js';
|
||||
import type { Err, Ok, Result } from 'ts-results';
|
||||
import type { Module, Override, Wrapper } from '../..';
|
||||
import type { CommandType } from '../sern';
|
||||
import type { ModuleDefs } from '../structures/modules/commands/moduleHandler';
|
||||
import type { BaseModule } from '../structures/modules/module';
|
||||
import type { CommandType } from '../sern';
|
||||
|
||||
export enum PluginType {
|
||||
Command = 0b01,
|
||||
Event = 0b10,
|
||||
}
|
||||
|
||||
export interface Controller {
|
||||
next: () => Ok<void>;
|
||||
stop: () => Err<void>;
|
||||
}
|
||||
|
||||
export enum PluginType {
|
||||
Command = 0b01,
|
||||
Event = 0b10,
|
||||
}
|
||||
|
||||
type executeCmdPlugin = { execute: (wrapper: Wrapper, controller: Controller) => Result<void, void> };
|
||||
|
||||
interface BasePlugin extends Override<BaseModule, executeCmdPlugin> {
|
||||
|
||||
Reference in New Issue
Block a user