Skip to content

Commit

Permalink
fix auto complete options
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-taxiera committed Apr 12, 2023
1 parent 4e269f6 commit a97d1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eris/src/modules/client.ts
Expand Up @@ -180,7 +180,6 @@ export class Hephaestus extends CoreHephaestus {

if (
!focusedOption ||
!('autocomplete' in focusedOption) ||
!option ||
!('autocomplete' in option) ||
!option.autocomplete
Expand All @@ -191,9 +190,10 @@ export class Hephaestus extends CoreHephaestus {

void option.autocompleteAction(
interaction,
focusedOption,
focusedOption as never, // HACK: the function signature is messed up unless you narrow the type of "option"
this,
)

return
}

Expand Down

0 comments on commit a97d1d8

Please sign in to comment.