mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
11 lines
345 B
TypeScript
11 lines
345 B
TypeScript
import type { Bot } from "../../bot.ts";
|
|
|
|
/** Removes all reactions for all emojis on this message. */
|
|
export async function removeAllReactions(bot: Bot, channelId: bigint, messageId: bigint) {
|
|
await bot.rest.runMethod<undefined>(
|
|
bot.rest,
|
|
"delete",
|
|
bot.constants.endpoints.CHANNEL_MESSAGE_REACTIONS(channelId, messageId),
|
|
);
|
|
}
|