type BlockAction missing user.username
member
#1909
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
semver:patch
TypeScript-specific
Milestone
Reproducible in:
Documentation: per the block action payload documentation, you can see that the username is an expected field:
The output of a block action in the Block Kit Builder will also produce a block action with a username:
However in the definition for a block action in https://github.com/slackapi/bolt-js/blob/main/src/types/actions/block-action.ts#L219 the
user
object is missing theusername
member:The Slack SDK version
"slack/bolt": "3.13.2",
"slack/logger": "^3.0.0",
"slack/oauth": "^2.6.1",
"slack/socket-mode": "^1.3.2",
"slack/types": "^2.8.0",
"slack/web-api": "^6.8.1",
Node.js runtime version
v18.12.1
OS info
ProductName: macOS
ProductVersion: 13.4.1
ProductVersionExtra: (c)
BuildVersion: 22F770820d
Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
Steps to reproduce:
payload.user.username
field from the output of any block action handler.Expected result:
no error
Actual result:
type error
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.
The text was updated successfully, but these errors were encountered: