Skip to content

Commit

Permalink
fix: autocomplete sdt.module not present (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes authored Mar 4, 2025
1 parent 70c6236 commit 2414992
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 @@ -40,7 +40,7 @@ export function interactionHandler(deps: UnpackedDependencies, defaultPrefix?: s

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)] };
args: [event, createSDT(module, deps, params)] };
// either CommandTypes Slash | ContextMessage | ContextUesr
} else if(isCommand(event)) {
const sdt = createSDT(module, deps, params)
Expand Down

0 comments on commit 2414992

Please sign in to comment.