chore: refactor and move things

This commit is contained in:
Jacob Nguyen
2023-05-04 18:46:23 -05:00
parent faa0b4882e
commit 7f53521ef4
2 changed files with 2 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import type { PluginType } from '../structures/enums';
import type { Module } from '../../types/module';
import type { Processed } from '../../types/handler';
import { EventType } from '../structures/enums';
import { CommandArgsMatrix, EventArgsMatrix } from '../../entrypoints/djs';
import { CommandArgsMatrix, EventArgsMatrix } from '../../types/module';
export interface InitArgs<T extends Processed<Module>> {
module: T;

View File

@@ -2,7 +2,6 @@ import { CommandType, EventType, PluginType } from '../structures';
import type { Plugin, PluginResult } from '../../types/plugin';
import type { CommandArgs, EventArgs } from './args';
import type { ClientEvents } from 'discord.js';
export const guayin = Symbol('twice<3');
export function makePlugin<V extends unknown[]>(
type: PluginType,
@@ -10,8 +9,7 @@ export function makePlugin<V extends unknown[]>(
): Plugin<V> {
return {
type,
execute,
[guayin]: undefined,
execute
} as Plugin<V>;
}
/**