mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: truco (#258)
This commit is contained in:
parent
f5a8d06d8b
commit
3d36024e17
@ -74,7 +74,7 @@ export class OptionResolver {
|
||||
}
|
||||
|
||||
getAutocomplete() {
|
||||
return (this.getCommand()?.options as CommandOption[]).find(
|
||||
return (this.getCommand()?.options as CommandOption[] | undefined)?.find(
|
||||
option => option.name === this.hoistedOptions.find(x => x.focused)?.name,
|
||||
) as CommandAutocompleteOption | undefined;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user