mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
deprecate a few things that i impusively added lol
This commit is contained in:
@@ -19,7 +19,14 @@ export interface ModuleManager extends MetadataAccess {
|
||||
get(id: string): Module | undefined;
|
||||
|
||||
set(id: string, path: Module): void;
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
getPublishableCommands(): CommandModule[];
|
||||
|
||||
/*
|
||||
* @deprecated
|
||||
*/
|
||||
getByNameCommandType<T extends CommandType>(
|
||||
name: string,
|
||||
commandType: T,
|
||||
|
||||
@@ -84,9 +84,6 @@ export function createDispatcher(payload: {
|
||||
}
|
||||
return { module: payload.module, args: contextArgs(payload.event) };
|
||||
}
|
||||
default: return {
|
||||
module: payload.module,
|
||||
args: [payload.event],
|
||||
};
|
||||
default: return { module: payload.module, args: [payload.event] };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user