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), { await this.client.rest.post(Routes.interactionCallback(this.id, this.token), {
body: { body: {
type: InteractionResponseType.ApplicationCommandAutocompleteResult, type: InteractionResponseType.ApplicationCommandAutocompleteResult,
data: { data: { choices: this.client.options.jsonTransformer(options) },
choices: options,
},
}, },
auth: false, auth: false,
}); });