You say#reactions.add
reactions.add
React to a message.
POST https://app.slaiky.xyz/api/methods/reactions.add · needs reactions:write
Arguments
| Argument | Type | Required | What |
|---|---|---|---|
messageId | id | yes | Message id. |
emoji | string | yes | Unicode emoji or :custom_name:. 1–64 characters. |
Answer
{ "ok": true, … } with: reactions: Reaction[]. A refusal is { "ok": false, "error": { "code", "message" } } (errors).
Example
Recorded on a real server (ids replaced).
curl -s https://app.slaiky.xyz/api/methods/reactions.add \
-H "authorization: Bearer $SLAIKY_BOT_TOKEN" \
-H 'content-type: application/json' \
-d '{"messageId":"7f3c0007-5a1e-4c2b-9d6f-1a2b3c4d5e06","emoji":"👀"}'
{
"ok": true,
"reactions": [
{
"emoji": "👍",
"count": 1,
"userIds": [
"7f3c0008-5a1e-4c2b-9d6f-1a2b3c4d5e07"
]
},
{
"emoji": "👀",
"count": 1,
"userIds": [
"7f3c0004-5a1e-4c2b-9d6f-1a2b3c4d5e03"
]
}
]
}
Updated . Every method, scope, event and limit here is generated from the server’s own code.