Files
discordeno/plugins/helpers/src/sendPrivateInteractionResponse.ts
2022-09-17 15:46:03 +00:00

13 lines
420 B
TypeScript

import type { BigString, Bot, InteractionResponse } from "../deps.ts";
/** sendInteractionResponse with ephemeral reply */
export async function sendPrivateInteractionResponse(
bot: Bot,
id: BigString,
token: string,
options: InteractionResponse,
) {
if (options.data && !options.data?.flags) options.data.flags = 64; // private: true
return await bot.helpers.sendInteractionResponse(id, token, options);
}