From 1864d37d36e53d127e74b6969a5f542193bfc3c7 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 1 Apr 2023 23:19:23 +0100 Subject: [PATCH] fix(AutocompleteInteraction): Send `name_localizations` correctly (#9238) fix(AutocompleteInteraction): send locale correctly Co-authored-by: space --- packages/discord.js/src/structures/AutocompleteInteraction.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/discord.js/src/structures/AutocompleteInteraction.js b/packages/discord.js/src/structures/AutocompleteInteraction.js index c44188af4..e54a71f0b 100644 --- a/packages/discord.js/src/structures/AutocompleteInteraction.js +++ b/packages/discord.js/src/structures/AutocompleteInteraction.js @@ -86,9 +86,7 @@ class AutocompleteInteraction extends BaseInteraction { await this.client.rest.post(Routes.interactionCallback(this.id, this.token), { body: { type: InteractionResponseType.ApplicationCommandAutocompleteResult, - data: { - choices: options, - }, + data: { choices: this.client.options.jsonTransformer(options) }, }, auth: false, });