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

Latest commit

 

History

History
48 lines (33 loc) · 1.09 KB

reaction_added.md

File metadata and controls

48 lines (33 loc) · 1.09 KB

reaction_added event type

{
    "type": "reaction_added",
    "user": "U024BE7LH",
    "reaction": "thumbsup",
    "item_user": "U0G9QF9C6",
    "item": {
        ...
    },
    "event_ts": "1360782804.083113"
}

When a reaction is added to an item the reaction_added event is sent to all connected clients for users who can see the content that was reacted to.

The user field indicates the ID of the user who performed this event. The item_user field represents the ID of the user that created the original item that has been reacted to.

Embedded item objects

Embedded item nodes are more lightweight than the structures you'll find in reactions.list.

Here are some examples:

Message:

"item": {
    "type": "message",
    "channel": "C0G9QF9GZ",
    "ts": "1360782400.498405"
}

File:

"item": {
    "type": "file",
    "file": "F0HS27V1Z"
}

File Comment:

"item": {
    "type": "file_comment",
    "file_comment": "Fc0HS2KBEZ",
    "file": "F0HS27V1Z"
}