Slack In: no chatId for event subscriptions
When subscribing to slack events (like mentions etc.) the Slack receiver node fails with the error that the chatId can't be empty.
The reason for this lays in the way how the channel is parsed for events. It expects an array of channels with the key channel_ids but most events only have a channel key with a single channelId.
I opened a PR with a fix: https://github.com/guidone/node-red-contrib-chatbot/pull/395
I skimmed the event payload list in the slack docs a bit and could not find events which use the channels_id, maybe this is not in use anymore?
@jacksbox I'm assuming that this is related to an error that I'm getting when trying to read from a
reaction_added or reaction_removed event as well. This is what the debug msg tells me:
Error: inbound message key "chatId" for transport slack is empty
See here: https://github.com/guidone/node-red-contrib-chatbot/wiki/Universal-Connector-node for an explanation about this error.
Running the newest version with your PR merged it, it looks like. Seems like the same issue, since no chatId is being set. This is from the basic Slack Receiver node piped straight to a debug node, nothing else.
@ff4500 yes, this looks like a similar issue. My PR fixed it just for the the event_callback type.
When I find some time I'll have a more detailed lock at it.
OT: awesome username / picture combination 😂 has the color any special meaning?