mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +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), {
|
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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user