mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
13 lines
434 B
TypeScript
13 lines
434 B
TypeScript
import type { Bot, InteractionResponse, Message } from "../deps.ts";
|
|
|
|
/** sendInteractionResponse with ephemeral reply */
|
|
export function sendPrivateInteractionResponse(
|
|
bot: Bot,
|
|
id: bigint,
|
|
token: string,
|
|
options: InteractionResponse,
|
|
): Promise<Message | undefined> {
|
|
if (options.data && !options.data?.flags) options.data.flags = 64; // private: true
|
|
return bot.helpers.sendInteractionResponse(id, token, options);
|
|
}
|