Skip to content

Commit

Permalink
add a comment for why MessageTimeStamp is a string, not json.Number
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Toshok committed Nov 11, 2021
1 parent c415915 commit b40bd98
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,13 @@ type GridMigrationStartedEvent struct {

// LinkSharedEvent A message was posted containing one or more links relevant to your application
type LinkSharedEvent struct {
Type string `json:"type"`
User string `json:"user"`
TimeStamp string `json:"ts"`
Channel string `json:"channel"`
Type string `json:"type"`
User string `json:"user"`
TimeStamp string `json:"ts"`
Channel string `json:"channel"`
// MessageTimeStamp can be both a numeric timestamp if the LinkSharedEvent corresponds to a sent
// message and (contrary to the field name) a uuid if the LinkSharedEvent is generated in the
// compose text area.
MessageTimeStamp string `json:"message_ts"`
ThreadTimeStamp string `json:"thread_ts"`
Links []sharedLinks `json:"links"`
Expand Down

0 comments on commit b40bd98

Please sign in to comment.