bolt-js's ack(string)
does not work in Socket Mode
#1455
Labels
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
pkg:socket-mode
applies to `@slack/socket-mode`
Milestone
The
ack
function that@slack/socket-mode
offers does not accept a string value in the way theack()
in HTTP endpoint based bolt-js receivers do. Specifically, the following slash command handler does acknowledge a request but it does not post the "Hi there" mesage in the Slack channel.The cause is the way that the
send
method handles thebody
parameter:see: https://github.com/slackapi/node-slack-sdk/blob/%40slack/socket-mode%401.2.0/packages/socket-mode/src/SocketModeClient.ts#L424-L425
Packages:
Select all that apply:
@slack/web-api
@slack/rtm-api
@slack/webhooks
@slack/oauth
@slack/socket-mode
Steps to reproduce:
See the above JS script.
Expected result:
The app's bot user post a new message "Hi there!"
Actual result:
No message is posted.
The text was updated successfully, but these errors were encountered: