import type { Bot } from "../../bot.ts"; import type { Message } from "../../types/messages/message.ts"; /** Suppress all the embeds in this message */ export async function suppressEmbeds(bot: Bot, channelId: bigint, messageId: bigint) { const result = await bot.rest.runMethod( bot.rest, "patch", bot.constants.endpoints.CHANNEL_MESSAGE(channelId, messageId), { flags: 4 } ); return bot.transformers.message(bot, result); }