mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
fix(AutocompleteInteraction): Send name_localizations correctly (#9238)
fix(AutocompleteInteraction): send locale correctly Co-authored-by: space <spaceeec@yahoo.com>
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user