Skip to content

Commit

Permalink
Merge pull request #1095 from grimmy/expose-reactions
Browse files Browse the repository at this point in the history
Expose reactionItem and reactionEvent
  • Loading branch information
kanata2 authored Dec 11, 2022
2 parents c857464 + 5e834ef commit 5a47d3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions websocket_reactions.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package slack

// reactionItem is a lighter-weight item than is returned by the reactions list.
type reactionItem struct {
// ReactionItem is a lighter-weight item than is returned by the reactions list.
type ReactionItem struct {
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"`
}

type reactionEvent struct {
type ReactionEvent struct {
Type string `json:"type"`
User string `json:"user"`
ItemUser string `json:"item_user"`
Item reactionItem `json:"item"`
Item ReactionItem `json:"item"`
Reaction string `json:"reaction"`
EventTimestamp string `json:"event_ts"`
}

// ReactionAddedEvent represents the Reaction added event
type ReactionAddedEvent reactionEvent
type ReactionAddedEvent ReactionEvent

// ReactionRemovedEvent represents the Reaction removed event
type ReactionRemovedEvent reactionEvent
type ReactionRemovedEvent ReactionEvent

0 comments on commit 5a47d3e

Please sign in to comment.