From 40a10bf32b9a1c6afbf85bdaeb2a7918c15ac7a8 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 15 May 2022 17:19:16 -0500 Subject: [PATCH] revert: Move enums to enums.ts --- src/handler/plugins/plugin.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 {