Edits history of script submission #8860 for ' Ask channel for approval (discord)'

  • deno
    import discordwebhook from "https://deno.land/x/discordwebhook/mod.ts";
    import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
    
    type DiscordWebhook = {
      webhook_url: string;
    };
    
    export async function main(discord_webhook: DiscordWebhook, message: string = "A flow is requesting an approval to be resumed") {
    
      const webhook = new discordwebhook(discord_webhook.webhook_url);
    
      const { approvalPage } = await getResumeUrls();
      
      const fullMessage = `${message} [approval page](${approvalPage})`;
    
      const ret = await webhook.createMessage(fullMessage);
      return ret;
    }
    

    Submitted by hugo697 398 days ago

  • deno
    import discordwebhook from "https://deno.land/x/discordwebhook/mod.ts";
    import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
    
    type DiscordWebhook = {
      webhook_url: string;
    };
    
    export async function main(discord_webhook: DiscordWebhook, message: string = "A flow is requesting an approval to be resumed") {
    
      const webhook = new discordwebhook(discord_webhook.webhook_url);
    
      const { approvalPage } = await getResumeUrls();
      
      const fullMessage = `${message} [approval page](${approvalPage})`;
    
      const ret = await webhook.createMessage(fullMessage);
      return ret;
    }
    

    Submitted by henri186 700 days ago