Skip to content

Commit

Permalink
feat: add include_all_metadata param to conversations.replies api
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkn committed Nov 30, 2022
1 parent c99b47b commit 5219773
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 5219773

Please sign in to comment.