3 ms·
Didn't know about the reply function in Slack's API. This would allow you to send a private message to the user in the #general channel, correct? I can see tha
by mijustin 11y ago
Didn't know about the reply function in Slack's API.
This would allow you to send a private message to the user in the #general channel, correct? I can see that being super helpful with a few integrations I'm thinking about.
- phoenixbox 11y agoIts actually the reply handler provided within Hapi, which lets you reply to the request. For error handling, instructive messages and private messages we use the reply handler to push messages back to the user in the slack channel, visible only to them. Its super handy to cut down on "noise" in the channel but you do lose the rich formatting options in messages. If the request is coming from the #general channel then that would work, alternatively you would have to build up a separate request using superagent or something