Skip to content

Commit

Permalink
Expose reactionEvents in innerevents
Browse files Browse the repository at this point in the history
Hello! This PR is to match the websocket change for slack-go#1095 to expose the reactionEvent types in innerevents.
  • Loading branch information
matthew-graves committed Jan 24, 2023
1 parent a735199 commit a293ed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slackevents/inner_events.go
Expand Up @@ -305,7 +305,7 @@ type pinEvent struct {
HasPins bool `json:"has_pins,omitempty"`
}

type reactionEvent struct {
type ReactionEvent struct {
Type string `json:"type"`
User string `json:"user"`
Reaction string `json:"reaction"`
Expand All @@ -315,10 +315,10 @@ type reactionEvent struct {
}

// ReactionAddedEvent An reaction was added to a message - https://api.slack.com/events/reaction_added
type ReactionAddedEvent reactionEvent
type ReactionAddedEvent ReactionEvent

// ReactionRemovedEvent An reaction was removed from a message - https://api.slack.com/events/reaction_removed
type ReactionRemovedEvent reactionEvent
type ReactionRemovedEvent ReactionEvent

// PinAddedEvent An item was pinned to a channel - https://api.slack.com/events/pin_added
type PinAddedEvent pinEvent
Expand Down

0 comments on commit a293ed4

Please sign in to comment.