matterbridge/vendor/github.com/slack-go/slack/websocket_reactions.go

26 lines
846 B
Go
Raw Permalink Normal View History

2016-09-05 07:34:37 -07:00
package slack
2023-01-28 13:57:53 -08:00
// ReactionItem is a lighter-weight item than is returned by the reactions list.
type ReactionItem struct {
2016-09-05 07:34:37 -07: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 13:57:53 -08:00
type ReactionEvent struct {
2016-09-05 07:34:37 -07:00
Type string `json:"type"`
User string `json:"user"`
ItemUser string `json:"item_user"`
2023-01-28 13:57:53 -08:00
Item ReactionItem `json:"item"`
2016-09-05 07:34:37 -07:00
Reaction string `json:"reaction"`
EventTimestamp string `json:"event_ts"`
}
// ReactionAddedEvent represents the Reaction added event
2023-01-28 13:57:53 -08:00
type ReactionAddedEvent ReactionEvent
2016-09-05 07:34:37 -07:00
// ReactionRemovedEvent represents the Reaction removed event
2023-01-28 13:57:53 -08:00
type ReactionRemovedEvent ReactionEvent