I’m working on a slack bot in JS, and using Slack’s “block kit” to format the messages. However, quite often I get a function that looks like this: Most of the code is just formatting the block kit text, and it makes it difficult to navigate. Is there a common way to organize this code so the blocks aren’t taking
Tag: slack-api
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. Answer I found what was the issue. First as we integrate bot to channel ,I also needed to invite @channelName. And in payload it
How to set a Slack Reminder with Slack Reminder API to a channel?
The current Slack API for Reminders allows developers to create a reminder for a specific person. This reminder is directly messaged to them via Slackbot; however, I want the reminder to be posted in a public channel. The Reminder API does not specify a channel argument so I’m unsure how to accomplish this with their API. I’ve posted my current