9 lines
219 B
TypeScript
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 };
|