5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-01 11:11:36 +00:00
matterbridge/vendor/github.com/slack-go/slack/websocket_reactions.go

26 lines
846 B
Go
Raw Normal View History

2016-09-05 14:34:37 +00:00
package slack
2023-01-28 21:57:53 +00:00
// ReactionItem is a lighter-weight item than is returned by the reactions list.
type ReactionItem struct {
2016-09-05 14:34:37 +00:00
Type string `json:"type"`
Channel string `json:"channel,omitempty"`
File string `json:"file,omitempty"`
FileComment string `json:"file_comment,omitempty"`
Timestamp string `json:"ts,omitempty"`
}
2023-01-28 21:57:53 +00:00
type ReactionEvent struct {
2016-09-05 14:34:37 +00:00
Type string `json:"type"`
User string `json:"user"`
ItemUser string `json:"item_user"`
2023-01-28 21:57:53 +00:00
Item ReactionItem `json:"item"`
2016-09-05 14:34:37 +00:00
Reaction string `json:"reaction"`
EventTimestamp string `json:"event_ts"`
}
// ReactionAddedEvent represents the Reaction added event
2023-01-28 21:57:53 +00:00
type ReactionAddedEvent ReactionEvent
2016-09-05 14:34:37 +00:00
// ReactionRemovedEvent represents the Reaction removed event
2023-01-28 21:57:53 +00:00
type ReactionRemovedEvent ReactionEvent