Skip to content
Advertisement

Why I receive {“ok”:false,”error”:”channel_not_found”} when I am setting topic in slack?

Here is my code for setting topic channel and I receive {"ok":false,"error":"channel_not_found"} while the channel exists and I tried to use channelId instead of using #channelName . but no difference. And the permissions are set correct.

JavaScript

Advertisement

Answer

I found what was the issue. First as we integrate bot to channel ,I also needed to invite @channelName. And in payload it would be correct instead of using #channelName to channelID. It didn’t work for me with channelName, it works with channelName when I posted message in channel but for set channel it works with channelId in payload

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement