import { WebClient } from "@slack/web-api"
/**
* Get Current User
* Identify the connected token (auth.test): `user_id`, `user`, `team_id`, `team`, workspace `url`, and `bot_id` when it is a bot token — handy to check which identity a resource acts as. No scope needed.
*/
export async function main(auth: RT.Slack) {
const client = new WebClient(auth.token)
return await client.auth.test()
}
Submitted by hugo989 2 hours ago