Edits history of script submission #72 for ' Send Message to Channel (slack)'

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(text: string, channel: string, slack: Slack) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by hugo697 360 days ago

  • deno
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(text: string, channel: string, slack: Slack) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by hugo697 374 days ago

  • deno
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(text: string, channel: string, slack: Slack) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by admin 1007 days ago

  • deno
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    export async function main(
      text: string,
      channel: string,
      slack: Slack,
    ) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by admin 1010 days ago

  • deno
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    import type { Resource } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      text: string,
      channel: string,
      slack: Resource<"slack">,
    ) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by adam186 1138 days ago

  • deno
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    import type { Resource } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      text: string,
      channel: string,
      slack: Resource<"slack">,
    ) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by adam186 1173 days ago

  • deno
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    import type { Resource } from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
      text: string,
      channel: string,
      slack: Resource<"slack">,
    ) {
      const web = new WebClient(slack.token);
    
      await web.chat.postMessage({
        channel,
        text,
      });
    }
    

    Submitted by admin 1388 days ago