diff --git a/src/handler/plugins/plugin.ts b/src/handler/plugins/plugin.ts index 658a875..73724d7 100644 --- a/src/handler/plugins/plugin.ts +++ b/src/handler/plugins/plugin.ts @@ -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; stop: () => Err; } +export enum PluginType { + Command = 0b01, + Event = 0b10, +} + type executeCmdPlugin = { execute: (wrapper: Wrapper, controller: Controller) => Result }; interface BasePlugin extends Override {