Closed hisabimbola closed 7 years ago
I don't think so... sorry...
On Sat, Nov 26, 2016 at 21:17 Abimbola Idowu notifications@github.com wrote:
Hello,
I am planning to use this module and I saw from the readme that it supports promises, but when I do this I get an error that .then is not a function
slack.api('users.list').then((result) => { })
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clonn/slack-node-sdk/issues/42, or mute the thread https://github.com/notifications/unsubscribe-auth/AKPN0ccdGVS_61nezupRv3I0gU8eEqYKks5rCRJggaJpZM4K9ETZ .
Any plans to add it @kevinburkeshyp I can submit a PR is it's a desired feature?
+1 README states :
0.1.6
support ES6, promise function.
however it throws a TypeError callback is not a function when I try to use it as a promise
Hi folks, really sorry about this. I think I am going to leave the library as is for the moment. I'd encourage you to wrap it via Promise.promisify()
in your own codebase, or just check the source code into your own codebase, and modify it to fit your needs.
I'll update the README so it doesn't mention promises anymore.
Hello,
I am planning to use this module and I saw from the readme that it supports promises, but when I do this I get an error that
.then
is not a functionAny help would be highly appreciated.
Danke.