You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the example TestingSlackAPI. My command api set up is giving me xoxb token, not an xoxp token. I'm getting the response back missing_scope. How do I resolve this?
It depends on the missing scope. This is an error from the slack API itself, not from this client. Take a careful look at the OAuth scopes granted to the application.
I'm building a very simple Slack client embedded into my app. For that, it needs to act on behalf of the user. Therefore, I've created a modern app that has lots of different scopes available (see in the screenshot).
Now, while I can easily post content using SlackTaskClient, I cannot perform lookups for channels and so on.
After looking through different docs I've learned about the ConnectAsync() method.
However, it tells me my app is missing rtm:stream scope.
Now, this is the scope that is given to old bot apps which take bot token as an input, not the user's one.
What should then I do to let my app to act on behalf of my user?
Activity
bakester14 commentedon Dec 7, 2021
It depends on the missing scope. This is an error from the slack API itself, not from this client. Take a careful look at the OAuth scopes granted to the application.
danielkornev commentedon Feb 20, 2022
Hi! I have a similar problem:
I'm building a very simple Slack client embedded into my app. For that, it needs to act on behalf of the user. Therefore, I've created a modern app that has lots of different scopes available (see in the screenshot).
Now, while I can easily post content using SlackTaskClient, I cannot perform lookups for channels and so on.
After looking through different docs I've learned about the ConnectAsync() method.
However, it tells me my app is missing rtm:stream scope.
Now, this is the scope that is given to old bot apps which take bot token as an input, not the user's one.
What should then I do to let my app to act on behalf of my user?
danielkornev commentedon Feb 20, 2022
Aha, so it seems like the problem is this:
https://api.slack.com/changelog/2021-10-rtm-start-to-stop
Apps created after November 2021 won't work with rtm.start API. 🤔
danielkornev commentedon Feb 20, 2022
Aha, so the thing is, one can use Conversations instead of Channels. Seems like this PR would make this library's usage much simpler:
#274