fix(AutocompleteInteraction): Fix responding
This commit is contained in:
parent
c47dd7dc14
commit
6d8efc6e00
@ -95,7 +95,7 @@ class AutocompleteInteraction extends Interaction {
|
|||||||
await this.client.api.interactions(this.id, this.token).callback.post({
|
await this.client.api.interactions(this.id, this.token).callback.post({
|
||||||
data: {
|
data: {
|
||||||
type: InteractionResponseTypes.APPLICATION_COMMAND_AUTOCOMPLETE_RESULT,
|
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,
|
auth: false,
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user