mirror of
https://github.com/SrIzan10/handler.git
synced 2026-05-01 10:45:17 +00:00
refactor: Change sernModule fn signature
This commit is contained in:
@@ -61,9 +61,9 @@ export function plugins<T extends CommandType, V extends EventPlugin<T> | Comman
|
||||
return plug;
|
||||
}
|
||||
|
||||
export function sernModule(plugins: { command: CommandPlugin[]; onEvent: EventPlugin[] }, mod: Module): PluggedModule {
|
||||
export function sernModule(plugins: SernPlugin[] , mod: Module): PluggedModule {
|
||||
return {
|
||||
mod,
|
||||
plugins: [...plugins.command, ...plugins.onEvent],
|
||||
plugins,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user