From 6d8efc6e00b8575ec08c9e357068053b11630d57 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 6 Apr 2023 18:01:40 +0700 Subject: [PATCH] fix(AutocompleteInteraction): Fix responding --- src/structures/AutocompleteInteraction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/AutocompleteInteraction.js b/src/structures/AutocompleteInteraction.js index a1d3db2..41900ab 100644 --- a/src/structures/AutocompleteInteraction.js +++ b/src/structures/AutocompleteInteraction.js @@ -95,7 +95,7 @@ class AutocompleteInteraction extends Interaction { await this.client.api.interactions(this.id, this.token).callback.post({ data: { type: InteractionResponseTypes.APPLICATION_COMMAND_AUTOCOMPLETE_RESULT, - data: { choices: { ...options, name_localizations: options.nameLocalizations } }, + data: { choices: options.map(choice => ({ ...choice, name_localizations: options.nameLocalizations })) }, }, auth: false, });