Created by lplit 216 days ago Viewed 0 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/mod.ts";
export async function main(
discord_webhook: Resource<"discord_webhook">,
messageId: string,
newMessageContent: string,
) {
const webhook = new discordwebhook(discord_webhook.webhook_url);
const ret = await webhook.editMessage(messageId, newMessageContent);
return ret;
}
No comments yet