Skip to content

Commit

Permalink
Merge pull request #1139 from ebkn/feature/include-metadata-on-conver…
Browse files Browse the repository at this point in the history
…sations-replies-api

add include_all_metadata to conversations.replies API
  • Loading branch information
kanata2 committed Dec 7, 2022
2 parents 93341d4 + 5219773 commit 6c7bfc2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions conversation.go
Expand Up @@ -398,13 +398,14 @@ func (api *Client) LeaveConversationContext(ctx context.Context, channelID strin
}

type GetConversationRepliesParameters struct {
ChannelID string
Timestamp string
Cursor string
Inclusive bool
Latest string
Limit int
Oldest string
ChannelID string
Timestamp string
Cursor string
Inclusive bool
Latest string
Limit int
Oldest string
IncludeAllMetadata bool
}

// GetConversationReplies retrieves a thread of messages posted to a conversation
Expand Down Expand Up @@ -436,6 +437,11 @@ func (api *Client) GetConversationRepliesContext(ctx context.Context, params *Ge
} else {
values.Add("inclusive", "0")
}
if params.IncludeAllMetadata {
values.Add("include_all_metadata", "1")
} else {
values.Add("include_all_metadata", "0")
}
response := struct {
SlackResponse
HasMore bool `json:"has_more"`
Expand Down

0 comments on commit 6c7bfc2

Please sign in to comment.