Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
47 lines (37 loc) · 2.16 KB

File metadata and controls

47 lines (37 loc) · 2.16 KB

Star/Unstar Message

Starring messages enables users to save them easily for future reference or personal use.

Name Requires Auth Permission Setting
starMessage Yes Message_AllowStarring - "Allow Message Starring"

Payload Parameters

Argument Example Required Description
message
{
    "_id": "8gMsLe9ApZjo2D2iB",
    "rid": "64a1f373376181965ab77f54",
    "starred": true
}

| Required | The message object. |

The message object contains the following properties:

_id8gMsLe9ApZjo2D2iBRequiredThe message id
rid64a1f373376181965ab77f54RequiredThe room id where the message should be sent
starredtrueRequiredIt can only be true or false.
true: - Star the message.
false: Unstar the message.

Example Call

{
    "msg": "method",
    "method": "starMessage",
    "id": "21",
    "params": [{
        "_id": "8gMsLe9ApZjo2D2iB",
        "rid": "64a1f373376181965ab77f54",
        "starred": true
    }]
}

Example Response

{
    "msg": "result",
    "id": "21",
    "result": true
}