mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
chore: refactor and move things
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user