From 3758f42c5069f80829daa944cc97b6352bf48156 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sat, 8 Jun 2024 00:31:19 -0500 Subject: [PATCH] rm updateModule --- packages/localizer/index.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/localizer/index.ts b/packages/localizer/index.ts index d9cf33d..a926c7d 100644 --- a/packages/localizer/index.ts +++ b/packages/localizer/index.ts @@ -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