Slack v0.2.1 Slack.Reaction View Source
Functions for working with reactions to messages 👍
Link to this section Summary
Functions
Add a reaction to an item.
Get reactions for an iteam.
List items reacted to by the user.
Remove a reaction from an item.
Link to this section Functions
Link to this function
add(client, body \\ [])
View Sourceadd(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Add a reaction to an item.
https://api.slack.com/methods/reactions.add
Examples
Slack.Reaction.add(client,
name: "thumbsup",
timestamp: 1234567890.123456,
channel: "C1234567890")
Link to this function
get(client, query \\ [])
View Sourceget(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Get reactions for an iteam.
https://api.slack.com/methods/reactions.get
Examples
Slack.Reaction.get(client,
name: "thumbsup",
timestamp: 1234567890.123456,
channel: "C1234567890")
Link to this function
list(client, query \\ [])
View Sourcelist(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
List items reacted to by the user.
https://api.slack.com/methods/reactions.list
Examples
Slack.Reaction.list(client)
Link to this function
remove(client, body \\ [])
View Sourceremove(Slack.Client.t(), Keyword.t()) :: Slack.slack_response()
Remove a reaction from an item.
https://api.slack.com/methods/reactions.remove
Examples
Slack.Reaction.remove(client,
name: "thumbsup",
timestamp: 1234567890.123456,
channel: "C1234567890")