mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
10 lines
318 B
TypeScript
10 lines
318 B
TypeScript
import type { Bot } from "../../bot.ts";
|
|
|
|
export async function deleteWebhookMessage(bot: Bot, webhookId: bigint, webhookToken: string, messageId: bigint) {
|
|
return await bot.rest.runMethod<undefined>(
|
|
bot.rest,
|
|
"delete",
|
|
bot.constants.endpoints.WEBHOOK_MESSAGE(webhookId, webhookToken, messageId)
|
|
);
|
|
}
|