Skip to content

Commit

Permalink
fix: absord undefined type in getResolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Dec 5, 2022
1 parent 1366d5b commit 645be29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interactions/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ResolvedDataNotFound {

export const getResolved = <A>(
name: string,
f: (id: Discord.Snowflake, data: Discord.ResolvedDatum) => A,
f: (id: Discord.Snowflake, data: Discord.ResolvedDatum) => A | undefined,
) =>
Effect.serviceWithEffect(ApplicationCommandContext)((a) =>
IxHelpers.resolveOptionValue(
Expand Down

0 comments on commit 645be29

Please sign in to comment.