From f79a9b5450b6b868710f7c72fa9410123b46ee05 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 2 Apr 2023 11:42:30 +0100 Subject: [PATCH] fix(AutocompleteInteraction): Fix responding (#9315) --- 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 a2f4bed0e27b..4d57ebf5e893 100644 --- a/src/structures/AutocompleteInteraction.js +++ b/src/structures/AutocompleteInteraction.js @@ -96,7 +96,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, });