Merge pull request #57 from MDrollette/reactionItem
reaction item only contains IDs
Norberto Lopes
8 years ago
0 | 0 | package slack |
1 | ||
2 | // reactionItem is a lighter-weight item than is returned by the reactions list. | |
3 | type reactionItem struct { | |
4 | Type string `json:"type"` | |
5 | Channel string `json:"channel,omitempty"` | |
6 | File string `json:"file,omitempty"` | |
7 | FileComment string `json:"file_comment,omitempty"` | |
8 | Timestamp string `json:"ts,omitempty"` | |
9 | } | |
1 | 10 | |
2 | 11 | type reactionEvent struct { |
3 | 12 | Type string `json:"type"` |
4 | 13 | User string `json:"user"` |
5 | Item ReactedItem `json:"item"` | |
14 | Item reactionItem `json:"item"` | |
6 | 15 | Reaction string `json:"reaction"` |
7 | 16 | EventTimestamp JSONTimeString `json:"event_ts"` |
8 | 17 | } |