Methods to manage reactions for the `Me` class.
Methods
# static getReactions(reactions) → {Array}
Retrieve all reactions for the identity.
Parameters:
Name | Type | Description |
---|---|---|
reactions |
Array
|
The reactions array to retrieve from. |
The reactions array.
Array
# static react(reactions, type, target, contentopt)
Add a reaction to a target.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
reactions |
Array
|
The reactions array to update. | ||
type |
string
|
The type of reaction (e.g., "like", "comment"). | ||
target |
string
|
The target of the reaction (e.g., "PostID"). | ||
content |
string
|
<optional> |
null | Additional content for the reaction (e.g., a comment). |
If the type or target is invalid.
Error