@slack/bolt version
3.18.0
Your App and Receiver Configuration
N/A
Node.js runtime version
v20.12.2
Steps to reproduce:
It's simple enough to prove that the value isn't always there...
- Create a bot with Interactivity
- Create an Interactivity webhook
- Post a message on Slack with an Button Block action that does not contain a
value
- Click on that button
- Note that the body sent to the webhook has a payload where the object in
actions does not contain a value
Example payload where actions array with no value in the object (truncated and unique identifiers changed):
Expected result:
The ButtonAction type should indicate that the value field is optional
Actual result:
The ButtonAction type indicates that the value field will always contain a string
See 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. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
@slack/boltversion3.18.0
Your
Appand 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...
valueactionsdoes not contain avalueExample payload where actions array with no
valuein the object (truncated and unique identifiers changed):{ "type": "block_actions", // ... "actions": [ { "action_id": "abc123", "block_id": "def456", "text": { "type": "plain_text", "text": "Hello World", "emoji": true }, "type": "button", "action_ts": "1234567890.123456" } ] }Expected result:
The
ButtonActiontype should indicate that thevaluefield is optionalActual result:
The
ButtonActiontype indicates that thevaluefield 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. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.