mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
fix(AutocompleteInteraction): Fix responding (#9315)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user