1 | import discordwebhook from "https://deno.land/x/discordwebhook/mod.ts"; |
2 | import type { Resource } from "https://deno.land/x/windmill/mod.ts"; |
3 |
|
4 | export async function main( |
5 | discord_webhook: Resource<"discord_webhook">, |
6 | messageId: string, |
7 | ) { |
8 | const webhook = new discordwebhook(discord_webhook.webhook_url); |
9 | const deletedMsg = await webhook.deleteMessage(messageId); |
10 | return deletedMsg; |
11 | } |
12 |
|