From 4d779e6bb21e28b214205c6108c4bae7221f833c Mon Sep 17 00:00:00 2001 From: Yuzu Date: Tue, 9 Aug 2022 10:06:16 -0500 Subject: [PATCH] fix: late hotfix that miia asked for --- packages/core/src/structures/interactions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/src/structures/interactions.ts b/packages/core/src/structures/interactions.ts index bc81014..d39eeb5 100644 --- a/packages/core/src/structures/interactions.ts +++ b/packages/core/src/structures/interactions.ts @@ -329,6 +329,9 @@ export class AutoCompleteInteraction extends BaseInteraction implements Model { this.commandType = data.data!.type; this.commandGuildId = data.data!.guild_id; this.locale = super.locale!; + this.options = new CommandInteractionOptionResolver( + data.data!.options ?? [] + ); } override type: InteractionTypes.ApplicationCommandAutocomplete; @@ -337,6 +340,7 @@ export class AutoCompleteInteraction extends BaseInteraction implements Model { commandType: ApplicationCommandTypes; commandGuildId?: Snowflake; override locale: string; + options: CommandInteractionOptionResolver; async respondWithChoices( choices: ApplicationCommandOptionChoice[]