Edits history of script submission #9903 for ' slack_get_caller_user_id (slack)'

  • bun
    import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
    
    type Slack = {
      token: string;
    };
    
    export async function main(
      slack: Slack,
    ) {    
      const web = new WebClient(slack.token);
      const email = Deno.env.get('WM_EMAIL');
      return await web.users.lookupByEmail({
        email
      })
    }

    Submitted by pranav bansal428 557 days ago