HubSpot / slack-client

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

Make `state` in `block_actions` payload optional #281

Closed omotnyk closed 2 years ago

omotnyk commented 2 years ago

As per Slack documentation it sends either state.values or view.state.values so both of these fields should be Optional so we don't fail do parse the payload if one of them is missing.

view.state.values is sent on interactions with blocks inside of modal. state.values is sent on the interactions with blocks inside of the message.

IvanivOleg commented 2 years ago

@omotnyk good catch 🚀