List the workspace's custom emojis and their image URLs.
1
import { WebClient } from "@slack/web-api"
2
3
/**
4
* List Custom Emojis
5
* List the workspace's custom emojis as a `name → image URL` map (aliases map to `alias:<name>`). Built-in Unicode emojis are not included. Requires emoji:read on the connection.
6
*/
7
export async function main(auth: RT.Slack) {
8
const client = new WebClient(auth.token)
9
return await client.emoji.list()
10
}
11