I'm getting the error shown below while trying to use the command:
slackcli -t token -h channel-name -u username -m "message"
cmd.js line 219 cannot call forEach on undefined while using -h channel
TypeError: Cannot call method 'forEach' of undefined
at Array.async.auto.channelId as 1
at listener (/usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:490:46)
at /usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:441:17
at _each (/usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:46:13)
at Object.taskComplete (/usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:440:13)
at processImmediate as _immediateCallback
I'm getting the error shown below while trying to use the command: slackcli -t token -h channel-name -u username -m "message"
cmd.js line 219 cannot call forEach on undefined while using -h channel
TypeError: Cannot call method 'forEach' of undefined at Array.async.auto.channelId as 1 at listener (/usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:490:46) at /usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:441:17 at _each (/usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:46:13) at Object.taskComplete (/usr/local/lib/node_modules/slack-cli/node_modules/async/lib/async.js:440:13) at processImmediate as _immediateCallback