import { WebClient } from "@slack/web-api";
type Slack = {
token: string;
};
export async function main(email: string, slack: Slack) {
const web = new WebClient(slack.token);
let response = await web.users.lookupByEmail({
email: email,
});
return { response: response };
}
Submitted by hugo989 7 days ago