Edits history of script submission #273 for ' Ask channel for approval (slack)'

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(
      slack: Slack,
      channel: string,
      text = "A flow is requesting an approval to be resumed",
    ) {
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeUrls(`channel-${channel}`);
      await web.chat.postMessage({
        channel,
        text: text + " <" + approvalPage + "|approval page>",
      });
    }
    

    Submitted by hugo697 375 days ago

  • deno
    import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(
      slack: Slack,
      channel: string,
      text = "A flow is requesting an approval to be resumed",
    ) {
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeUrls(`channel-${channel}`);
      await web.chat.postMessage({
        channel,
        text: text + " <" + approvalPage + "|approval page>",
      });
    }
    

    Submitted by admin 978 days ago

  • deno
    import { getResumeEndpoints } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(
      slack: Slack,
      channel: string,
      text = "A flow is requesting an approval to be resumed",
    ) {
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeEndpoints(`channel-${channel}`);
      await web.chat.postMessage({
        channel,
        text: text + " <" + approvalPage + "|approval page>",
      });
    }
    

    Submitted by admin 1008 days ago

  • deno
    import {
      getResumeEndpoints
    } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(
      slack: Slack,
      channel: string,
      text = 'A flow is requesting an approval to be resumed'
    ) {
    
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
      await web.chat.postMessage({
        channel,
        text: text + ' <' + approvalPage + '|approval page>'
      });
    }
    

    Submitted by admin 1011 days ago

  • deno
    import {
      getResumeEndpoints,
      Resource,
    } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      slack: Resource<"slack">,
      channel: string,
      text = 'A flow is requesting an approval to be resumed'
    ) {
    
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
      await web.chat.postMessage({
        channel,
        text: text + ' <' + approvalPage + '|approval page>'
      });
    }
    

    Submitted by adam186 1139 days ago

  • deno
    import {
      getResumeEndpoints,
      Resource,
    } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      slack: Resource<"slack">,
      channel: string,
      text = 'A flow is requesting an approval to be resumed'
    ) {
    
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
      await web.chat.postMessage({
        channel,
        text: text + ' <' + approvalPage + '|approval page>'
      });
    }
    

    Submitted by adam186 1174 days ago

  • deno
    import {
      getResumeEndpoints,
      Resource,
    } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      slack: Resource<"slack">,
      channel: string,
      text = 'A flow is requesting an approval to be resumed'
    ) {
    
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
      await web.chat.postMessage({
        channel,
        text: text + ' <' + approvalPage + '|approval page>'
      });
    }
    

    Submitted by admin 1224 days ago

  • deno
    import {
      getResumeEndpoints,
      Resource,
    } from "https://deno.land/x/[email protected]/mod.ts";
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      slack: Resource<"slack">,
      channel: string,
      text = 'A flow is requesting an approval to be resumed'
    ) {
    
      const web = new WebClient(slack.token);
    
      const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
      await web.chat.postMessage({
        channel,
        text: text + ' ' + approvalPage
      });
    }
    

    Submitted by admin 1224 days ago