-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1095 from grimmy/expose-reactions
Expose reactionItem and reactionEvent
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |