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

Disambiguate bot and user tokens since bot token is only needed for rtm.start #2

Closed
wants to merge 1 commit into from

Conversation

moults31
Copy link
Owner

@moults31 moults31 commented Oct 24, 2021

Fixes (or at least works around) Itiviti#279

More context: https://api.slack.com/bot-users#bot_methods__methods-for-the-modern-bot

Slack has added new scopes that are not available to "classic" bots. However, simple-slack-api bots are required to be classic since it uses the rtm api (https://api.slack.com/rtm). My fix/workaround is to use the app's user token instead of bot token to use these scopes.

An alternative (better?) fix would be to replace rtm.start with modern calls to pull the necessary info when creating a session.

@moults31 moults31 closed this Oct 25, 2021
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

Successfully merging this pull request may close these issues.

1 participant