candrholdings / slack-cli

A command line interface for Slack implemented using node.
https://candrholdings.github.io/slack-cli/
287 stars 31 forks source link

Error while trying to send a message to a channel #13

Open kylebeth94 opened 8 years ago

kylebeth94 commented 8 years ago

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

applelight commented 8 years ago

Same thing here...

zzolo commented 7 years ago

Same

ImBeCiliC commented 5 years ago

Same