Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
[NEW] setReaction method shouldReactParam
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored and ggazzo committed Jun 20, 2018
1 parent 7e84009 commit c8ff4ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Reacting to messages is a convenient way to "react" to messages with emojis, all

## Example Call

Setting and removing a reaction requires a call to the same method with the same parameters. The first parameter is the reaction which is also the `emoji` and the second parameter is the message id of which the reaction is happening against.
Setting and removing a reaction requires a call to the same method with the same parameters. The first parameter is the reaction which is also the `emoji`,
the second parameter is the message id of which the reaction is happening against and the third parameter is optional and work like a setter.

```json
{
Expand All @@ -20,6 +21,7 @@ Setting and removing a reaction requires a call to the same method with the same
"params": [
":nerd:",
"messageId"
true/false
]
}
```
Expand Down
2 changes: 1 addition & 1 deletion developer-guides/rest-api/chat/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Toggles the authenticated user's reaction to the provided message.
| :--- | :--- | :--- | :--- |
| `emoji` | `smile` | Required | The emoji to react with. |
| `messageId` | `7aDSXtjMA3KPLxLjt` | Required | The message id to react to. |
| `shouldReact` | `7aDSXtjMA3KPLxLjt` | Optional: `true` or `false` | Parameter to specify if the reaction should be added or removed. |
| `shouldReact` | `true` | Optional: `true` or `false` | Parameter to specify if the reaction should be added or removed. |

The `emoji` does not have to contain the `:`'s. However, the emoji *does* have to exist.

Expand Down

0 comments on commit c8ff4ed

Please sign in to comment.