Created by lplit 242 days ago Viewed 2307 times 0 Points
No comments yet
import discordwebhook from "https://deno.land/x/discordwebhook/mod.ts";
import type { Resource } from 'https://deno.land/x/windmill@v1.70.1/mod.ts'
export async function main(discord_webhook: Resource<'discord_webhook'>, message: string) {
const webhook = new discordwebhook(discord_webhook.webhook_url);
const ret = await webhook.createMessage(message);
return ret;
}
No comments yet