import discordwebhook from "https://deno.land/x/discordwebhook/mod.ts";
import type { Resource } from "https://deno.land/x/windmill/mod.ts";
export async function main(
discord_webhook: Resource<"discord_webhook">,
messageId: string,
) {
const webhook = new discordwebhook(discord_webhook.webhook_url);
const deletedMsg = await webhook.deleteMessage(messageId);
return deletedMsg;
}
Submitted by lplit 813 days ago