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

[NEW] setReaction method shouldReactParam #804

Merged
merged 1 commit into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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