cal.pub0.org/packages/app-store/slackmessaging/lib/utils.ts

9 lines
219 B
TypeScript

import { WebClient } from "@slack/web-api";
const getUserEmail = async (client: WebClient, userId: string) =>
await (
await client.users.info({ user: userId })
).user?.profile?.email;
export { getUserEmail };