Closed w33ble closed 4 months ago
Good find @w33ble, and thanks for reporting this!
Looks like the documentation for Button block action payload is also consistent with value
not being required. Got a fix here.
@srajiang thanks for the quick fix! Looking forward to 3.19.0 being released. 👍🏾
👋 Hey @w33ble! This fix should be available now with the latest v3.19.0
changes! 🚀
@slack/bolt
version3.18.0
Your
App
and Receiver ConfigurationN/A
Node.js runtime version
v20.12.2
Steps to reproduce:
It's simple enough to prove that the value isn't always there...
value
actions
does not contain avalue
Example payload where actions array with no
value
in the object (truncated and unique identifiers changed):Expected result:
The
ButtonAction
type should indicate that thevalue
field is optionalActual result:
The
ButtonAction
type indicates that thevalue
field will always contain a stringSee the type here.
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.