mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
* Create deno.json * run format * run format * ci: only check formatting * f * Update settings.json * Update settings.json
16 lines
472 B
TypeScript
16 lines
472 B
TypeScript
import { ApplicationCommandOptionChoice, Bot, InteractionResponseTypes } from "../deps.ts";
|
|
|
|
export async function sendAutocompleteChoices(
|
|
bot: Bot,
|
|
interactionId: bigint,
|
|
interactionToken: string,
|
|
choices: ApplicationCommandOptionChoice[],
|
|
): Promise<void> {
|
|
await bot.helpers.sendInteractionResponse(interactionId, interactionToken, {
|
|
type: InteractionResponseTypes.ApplicationCommandAutocompleteResult,
|
|
data: {
|
|
choices: choices,
|
|
},
|
|
});
|
|
}
|