SlackAction typedef incorrectly defines channel as required #341
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
TypeScript-specific
Description
Per the typedefs,
SlackAction
should have a non-nullablechannel
object yet it is undefined.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
SlackAction
(defined as one ofBlockAction
,InteractiveMessage
,DialogSubmitAction
, orMessageAction
) is consistently defined as having a non-nullablechannel
object. However, when accessingaction.channel.id
in any of my interaction handlers, I have the following error:Either the type defs are wrong or
channel
isn't getting set as it should be.Reproducible in:
package version: Bolt 1.4.1
node version: 12.4.0
OS version(s): macOS Mojave 10.14.3
Steps to reproduce:
action_id
ofbutton_click
.Expected result:
A console log of the channel id.
Actual result:
A console log of a stacktrace:
Attachments:
None
The text was updated successfully, but these errors were encountered: