fix: truco (#258)

This commit is contained in:
JustEvil 2024-08-29 18:30:18 -06:00 committed by GitHub
parent f5a8d06d8b
commit 3d36024e17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}