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

  • 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 484 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 498 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 1131 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 1134 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 1262 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 1297 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 1512 days ago