import { WebClient } from "@slack/web-api"
/**
* Add Reaction
* Add an emoji reaction to a message identified by its channel and `timestamp` (the message's `ts`). `name` is the emoji name without colons, e.g. "thumbsup". Requires reactions:write on the connection.
*/
export async function main(
auth: RT.Slack,
channel: string,
timestamp: string,
name: string
) {
const client = new WebClient(auth.token)
return await client.reactions.add({ channel, timestamp, name })
}
Submitted by hugo989 2 hours ago