From 6bb6581b736459b0c0da828e13168abc9b10940b Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sun, 2 Feb 2025 19:19:38 -0600 Subject: [PATCH] fix --- src/handlers/interaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/interaction.ts b/src/handlers/interaction.ts index eeccfbe..8b77341 100644 --- a/src/handlers/interaction.ts +++ b/src/handlers/interaction.ts @@ -38,7 +38,7 @@ export function interactionHandler(deps: UnpackedDependencies, defaultPrefix?: s option = event.options.getFocused(true), fullPath = path.join("", subCommandGroup, subCommand, option.name) - const resolvedModule = lookupTable.get(fullPath)! as unknown as Module + const resolvedModule = (lookupTable.get(fullPath)!.command) as Module payload= { module: resolvedModule , //autocomplete is not a true "module" warning cast! args: [event, createSDT(resolvedModule, deps, params)] }; // either CommandTypes Slash | ContextMessage | ContextUesr