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

Slack's update in connect.start API breaks the slackbots package #156

Closed
Sundarasan opened this issue Sep 29, 2022 · 1 comment
Closed

Comments

@Sundarasan
Copy link

Sundarasan commented Sep 29, 2022

Issue:

const bot = new Slackbot({
  token: 'xxxxx',
  name: 'xxxxx'
})

bot.on('start', () => {
  console.log('Bot channels:', bot.channels)
})

Output is,

Bot channels: undefined

Reason:

  • Slack has updated their connect.start API method's response which causes the above issue.
  • Please refer Slack's connect.start doc to know about deprecation and change in response structure of connect.start API.

Solution:

  • slackbots package must be updated to adopt to the API response change.
@mishk0
Copy link
Owner

mishk0 commented Oct 2, 2022

thanks for reporting an issue. I've updated deprecated methods. And please use getChannels method in order to get a list of channels, since it's not provided on init anymore. Thanks!

@mishk0 mishk0 closed this as completed Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants