Skip to content

Commit

Permalink
fix(AutocompleteInteraction): Fix responding (#9315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite authored Apr 2, 2023
1 parent 48f7193 commit f79a9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/AutocompleteInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit f79a9b5

Please sign in to comment.