Send a message to discord using webhook ( discord)
One script reply has been approved by the moderators Verified

Created by lplit 242 days ago Viewed 2307 times 0 Points

No comments yet

Login to be able to comment
Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved
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;
}

Submitted by lplit 242 days ago

Edited 29 days ago

No comments yet

Login to be able to comment