refactor: Bring CommandType and PluginType to top level

This commit is contained in:
Jacob Nguyen
2022-05-17 17:10:01 -05:00
parent f8987499f6
commit 82f1bad8ff
8 changed files with 32 additions and 32 deletions

View File

@@ -8,10 +8,9 @@ import type {
} from 'discord.js';
import type { Override } from '../../types/handler';
import type { Args } from '../../types/handler';
import type { CommandType } from '../sern';
import type { CommandPlugin, EventPlugin } from '../plugins/plugin';
import type Context from './context';
import type { PluginType } from '../plugins/plugin';
import { CommandType, PluginType } from './enums';
export interface BaseModule {
type : CommandType | PluginType
@@ -47,7 +46,6 @@ export type ContextMenuUser = Override<BaseModule, {
type: CommandType.MenuUser;
onEvent?: EventPlugin<CommandType.MenuUser>[];
plugins?: (CommandPlugin)[];
description? : string;
execute: (ctx: UserContextMenuCommandInteraction) => Awaitable<void>
}>
@@ -55,7 +53,6 @@ export type ContextMenuMsg = Override<BaseModule, {
type: CommandType.MenuMsg;
onEvent?: EventPlugin<CommandType.MenuMsg>[];
plugins?: CommandPlugin[];
description? : string;
execute: (ctx: MessageContextMenuCommandInteraction) => Awaitable<void>
}>;