I’m trying to figure out how to get the chat integration to be able to post to a private slack channel. I’ve been able to do this with Asana, our task manager, but Discourse doesn’t seem to allow me to do that.
When I create a private channel and go to Add Apps, Asana gives me the option to add, but Discourse I only get the option to view.
I’m not sure if this is just a permission in Slack we need to give to the Discourse app. Unfortunately I don’t admin our Slack instance any longer, so I’m going to need to work with my IT group to test. Any pointers would be appreciated.
Here are screen shots when trying to add both apps:
I’ve tested this on my Slack account. On that account I am able to add the Discourse app to a private channel by clicking the channel’s “Add an app” link. This works for private channels that the Slack admin is a member of and for private channels that the Slack admin is not a member of.
Yep, we were missing two of the permissions (top chat), but oddly even after making the app available in all channels, it only seems to start working on private channels when I invite the Slack admin to the channel. I’m guessing something is wrong with our permissions for that, but I’ll need to do some more testing with him next week. Thanks for the update.
OK as a follow up here is where I’m at in testing.
I believe all the permissions are set correctly, but my Slack admin went home for the day. I noticed I get an error when trying to post to a private Slack channel that the channel does not exist. I originally thought this might have been because I’d just created a channel to test with, so I tried an older test channel and got the same error notice in my rule set.
I then added my Slack admin to the channel and posted again. This time it went right through. I can’t test removing the admin to see if the integration keeps working until he’s back online. If that works I guess that’s the workaround model, unless there is a way to kick off the integration on a private channel without adding a Slack admin.
Thanks @sunjam, I’ll have to find out how that bot is set up in Slack, the obvious names (what it posts as, discourse_integration don’t seem to be found the slash invite command. Thanks for the pointer though!
You create the bot user as part of the documented setup process within Slack, then you have to actually invite it to each particular room. << If there is an easier way to do this I’d love to know.
Hello! I am wondering if anyone has had any luck since the last post in this thread at integrating Discourse into a private channel on Slack? I have tried a few things, but just have not been able to get it to work and pull in posts from Discourse like public channels can. Anyone have any luck? Any advice you can share? Thank you!