HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
115 stars 53 forks source link

Add message blocks. #298

Closed nliutyi-hs closed 1 year ago

nliutyi-hs commented 1 year ago

This PR adds message blocks, which are passed by Slack in the message_action payload. This will allow us to work with user messages in a much more sufficient way, removing the need to parse the Slack markdown text itself.

WH77 commented 1 year ago

Heads up, I believe this this broke deserialization of emoji message blocks - mind reverting or adding the subtype?

Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'emoji' as a subtype of `com.hubspot.slack.client.models.blocks.messages.MessageBlock`
...