Open ajayak opened 6 years ago
https://github.com/rauchg/slackin/blob/e41687b286c4dcaa24538383bd8a191d8e1b0871/lib/index.js#L193
Because of variable scoping, slack is undefined and chanId is always null
slack
chanId
For quickfix in my app, I make this chanId to a global variable and use this globals.chanId for channel id. https://github.com/rauchg/slackin/blob/e41687b286c4dcaa24538383bd8a191d8e1b0871/lib/index.js#L122
globals.chanId
https://github.com/rauchg/slackin/blob/e41687b286c4dcaa24538383bd8a191d8e1b0871/lib/index.js#L193
Because of variable scoping,
slack
is undefined andchanId
is always nullFor quickfix in my app, I make this
chanId
to a global variable and use thisglobals.chanId
for channel id. https://github.com/rauchg/slackin/blob/e41687b286c4dcaa24538383bd8a191d8e1b0871/lib/index.js#L122