Narrow fetchMessages response type using includeMessageActions param #408
Labels
priority: low
This PR should be reviewed after all high and medium PRs.
status: rejected
This issue is considered rejected. It will not be worked on.
type: chore
This PR contains changes that are not covered by other types (stylistic, dependency updates, etc).
Rather than
fetchMessages
always returning union ofFetchMessagesWithActionsResponse
andFetchMessagesForChannelsResponse
, you can use the value of theincludeMessageActions
flag inFetchMessagesParameters
to narrow the response type like so:The text was updated successfully, but these errors were encountered: