Debian Codegraph @

websocket_reactions.go

raw symbols SCIP
1 package slack
2
3 // reactionItem is a lighter-weight item than is returned by the reactions list.
4 type reactionItem struct {
5 Type string `json:"type"`
6 Channel string `json:"channel,omitempty"`
7 File string `json:"file,omitempty"`
8 FileComment string `json:"file_comment,omitempty"`
9 Timestamp string `json:"ts,omitempty"`
10 }
11
12 type reactionEvent struct {
13 Type string `json:"type"`
14 User string `json:"user"`
15 ItemUser string `json:"item_user"`
16 Item reactionItem `json:"item"`
17 Reaction string `json:"reaction"`
18 EventTimestamp string `json:"event_ts"`
19 }
20
21 // ReactionAddedEvent represents the Reaction added event
22 type ReactionAddedEvent reactionEvent
23
24 // ReactionRemovedEvent represents the Reaction removed event
25 type ReactionRemovedEvent reactionEvent