Skip to content

Commit

Permalink
slackevents: support metadata in MessageEvent
Browse files Browse the repository at this point in the history
Support for receiving metadata when reading conversation history was
first added in PR slack-go#1083. This commit extends metadata support to message
events when connected to the Slack WebSocket API.

Signed-off-by: Robert Fratto <[email protected]>
  • Loading branch information
rfratto committed Jul 19, 2024
1 parent 1dfd1df commit 98ee384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slackevents/inner_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ type MessageEvent struct {
Blocks slack.Blocks `json:"blocks,omitempty"`
Attachments []slack.Attachment `json:"attachments,omitempty"`

Metadata slack.SlackMetadata `json:"metadata,omitempty"`

// Root is the message that was broadcast to the channel when the SubType is
// thread_broadcast. If this is not a thread_broadcast message event, this
// value is nil.
Expand Down

0 comments on commit 98ee384

Please sign in to comment.