mirror of
https://github.com/sern-handler/tools
synced 2026-06-28 02:32:22 +00:00
rm updateModule
This commit is contained in:
@@ -85,7 +85,7 @@ export const local = (i: string, local: string) => {
|
||||
*/
|
||||
export const localize = (root?: string) =>
|
||||
//@ts-ignore
|
||||
CommandInitPlugin(({ updateModule, module, deps }) => {
|
||||
CommandInitPlugin(({ module, deps }) => {
|
||||
if(module.type === CommandType.Slash || module.type === CommandType.Both) {
|
||||
deps['@sern/logger'].info({ message: "Localizing "+ module.name });
|
||||
const resolvedLocalization= 'command/'+(root??module.name);
|
||||
@@ -94,9 +94,6 @@ export const localize = (root?: string) =>
|
||||
const newOpts = module.options ?? [];
|
||||
//@ts-ignore
|
||||
dfsApplyLocalization(newOpts, deps, [resolvedLocalization]);
|
||||
updateModule({
|
||||
options: newOpts
|
||||
});
|
||||
return controller.next();
|
||||
} else {
|
||||
//@ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user