mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
18 lines
463 B
TypeScript
18 lines
463 B
TypeScript
import type { BigString, Bot, DiscordMessage, Message } from 'discordeno'
|
|
|
|
/** Suppress all the embeds in this message */
|
|
export async function suppressEmbeds (
|
|
bot: Bot,
|
|
channelId: BigString,
|
|
messageId: BigString
|
|
): Promise<Message> {
|
|
const result = await bot.rest.runMethod<DiscordMessage>(
|
|
bot.rest,
|
|
'PATCH',
|
|
bot.constants.routes.CHANNEL_MESSAGE(channelId, messageId),
|
|
{ flags: 4 }
|
|
)
|
|
|
|
return bot.transformers.message(bot, result)
|
|
}
|