mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 22:24:49 +12:00
fix(AutocompleteInteraction): Fix responding (#9315)
This commit is contained in:
parent
48f7193ef1
commit
f79a9b5450
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class AutocompleteInteraction extends Interaction {
|
|||
await this.client.api.interactions(this.id, this.token).callback.post({
|
||||
data: {
|
||||
type: InteractionResponseTypes.APPLICATION_COMMAND_AUTOCOMPLETE_RESULT,
|
||||
data: { choices: { ...options, name_localizations: options.nameLocalizations } },
|
||||
data: { choices: options.map(choice => ({ ...choice, name_localizations: options.nameLocalizations })) },
|
||||
},
|
||||
auth: false,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue