fix(AutocompleteInteraction): Send name_localizations correctly (#9238)

fix(AutocompleteInteraction): send locale correctly

Co-authored-by: space <spaceeec@yahoo.com>
This commit is contained in:
Jiralite
2023-04-01 23:19:23 +01:00
committed by GitHub
parent f340f3b1fd
commit 1864d37d36

View File

@@ -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,
});