fix: late hotfix that miia asked for

This commit is contained in:
Yuzu 2022-08-09 10:06:16 -05:00
parent 4d90686ee6
commit 4d779e6bb2

View File

@ -329,6 +329,9 @@ export class AutoCompleteInteraction extends BaseInteraction implements Model {
this.commandType = data.data!.type; this.commandType = data.data!.type;
this.commandGuildId = data.data!.guild_id; this.commandGuildId = data.data!.guild_id;
this.locale = super.locale!; this.locale = super.locale!;
this.options = new CommandInteractionOptionResolver(
data.data!.options ?? []
);
} }
override type: InteractionTypes.ApplicationCommandAutocomplete; override type: InteractionTypes.ApplicationCommandAutocomplete;
@ -337,6 +340,7 @@ export class AutoCompleteInteraction extends BaseInteraction implements Model {
commandType: ApplicationCommandTypes; commandType: ApplicationCommandTypes;
commandGuildId?: Snowflake; commandGuildId?: Snowflake;
override locale: string; override locale: string;
options: CommandInteractionOptionResolver;
async respondWithChoices( async respondWithChoices(
choices: ApplicationCommandOptionChoice[] choices: ApplicationCommandOptionChoice[]