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

[BUG] Channel prop in Slack Bot actions seems to only load DMs? #14031

Closed
dannyroosevelt opened this issue Sep 19, 2024 · 4 comments · Fixed by #14062
Closed

[BUG] Channel prop in Slack Bot actions seems to only load DMs? #14031

dannyroosevelt opened this issue Sep 19, 2024 · 4 comments · Fixed by #14062
Assignees
Labels
bug Something isn't working triaged For maintainers: This issue has been triaged by a Pipedream employee

Comments

@dannyroosevelt
Copy link
Collaborator

I have all of the required scopes on my Bot Token, but the Channel prop seems to only be loading DMs, and not any channels.

Screenshot by Dropbox Capture

Screenshot by Dropbox Capture

@dannyroosevelt dannyroosevelt added the bug Something isn't working label Sep 19, 2024
@michelle0927 michelle0927 self-assigned this Sep 20, 2024
@michelle0927
Copy link
Collaborator

michelle0927 commented Sep 20, 2024

@dannyroosevelt Listing private channels requires scope groups:read, and the Slack Bot actions only lists channels that the bot is a member of. If you use the Slack action "List Members in Channel", does it show the bot as a channel member? You can add a bot to a channel with the Slack action "Invite User to Channel".
If that's not the issue, can you share which actions you've observed this in? Or is it just all actions that use the Channel prop?

@dannyroosevelt
Copy link
Collaborator Author

@dannyroosevelt Listing private channels requires scope groups:read, and the Slack Bot actions only lists channels that the bot is a member of. If you use the Slack action "List Members in Channel", does it show the bot as a channel member? You can add a bot to a channel with the Slack action "Invite User to Channel". If that's not the issue, can you share which actions you've observed this in? Or is it just all actions that use the Channel prop?

Ah you nailed it, Michelle. I added the bot to my public channel, then that channel was listed. And when I added the bot to my private channel and added the groups:read scope, the private channel was listed too. We should add some of that info to the channel prop in the Slack Bot app. Can you add something like,

In order to list Slack channels, your bot must be a member of that channel. And in order to list private channels, your bot must also have the groups:read scope in the OAuth & Permissions settings in Slack for this bot.

@vunguyenhung vunguyenhung added the triaged For maintainers: This issue has been triaged by a Pipedream employee label Sep 23, 2024
@vunguyenhung
Copy link
Collaborator

Hello everyone, I have tested this PR and there're some test cases failed or needed improvement.

Please check the test report below for more information
https://vunguyenhung.notion.site/BUG-Channel-prop-in-Slack-Bot-actions-seems-to-only-load-DMs-10abf548bb5e815f80d6de9493027165

@vunguyenhung
Copy link
Collaborator

Hi everyone, all test cases are passed! Ready for release!

Test report
https://vunguyenhung.notion.site/BUG-Channel-prop-in-Slack-Bot-actions-seems-to-only-load-DMs-10abf548bb5e815f80d6de9493027165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged For maintainers: This issue has been triaged by a Pipedream employee
Development

Successfully merging a pull request may close this issue.

3 participants