Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Feb 3, 2025
1 parent 98026ff commit 6bb6581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function interactionHandler(deps: UnpackedDependencies, defaultPrefix?: s
option = event.options.getFocused(true),
fullPath = path.join("<parent>", 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
Expand Down

0 comments on commit 6bb6581

Please sign in to comment.