Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Botkit bot.api.users.info() exception #364

Closed
ppattanayak opened this issue Aug 12, 2016 · 3 comments
Closed

Botkit bot.api.users.info() exception #364

ppattanayak opened this issue Aug 12, 2016 · 3 comments

Comments

@ppattanayak
Copy link

ppattanayak commented Aug 12, 2016

/botkit/lib/Slack_web_api.js:11
if (!options.token) {
^
TypeError: Cannot read property 'token' of undefined

options is not defined

@aauld
Copy link

aauld commented Mar 10, 2017

I also have this same issue. What should I do?

@jonchurch
Copy link
Contributor

@aauld Can you give some context to where you are stuck? What version of botkit are you on?

@jtokoph
Copy link

jtokoph commented Aug 4, 2017

In case anyone arrives here via Google or repo search:

Make sure any calls to the api functions include an options hash as the first argument, even if it's just an empty hash. For example:

bot.api.mpim.list({}, function (err, res) {});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants