Re:How to build your own Slack integration
by phoenixbox on Monday August 24, 2015 @02:24PM
(#10111960)
Its 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
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.