Skip to content

Commit

Permalink
Add messages and warnings to response metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
alyosha committed Sep 19, 2020
1 parent b0eeb26 commit 505712e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ type httpClient interface {

// ResponseMetadata holds pagination metadata
type ResponseMetadata struct {
Cursor string `json:"next_cursor"`
Cursor string `json:"next_cursor"`
Messages []string `json:"messages"`
Warnings []string `json:"warnings"`
}

func (t *ResponseMetadata) initialize() *ResponseMetadata {
Expand Down

0 comments on commit 505712e

Please sign in to comment.