webhook icon indicating copy to clipboard operation
webhook copied to clipboard

Broadcasting Slack Slash Command's Response

Open minlaxz opened this issue 2 years ago • 1 comments

So basically when a slash command is triggered, a webhook is called. But in Slack's Message Visibility, I need to include response_type: in_channel to broadcast the message.

Based on this, I would like to broadcast a message in the channel how can I do that?

minlaxz avatar Sep 21 '23 05:09 minlaxz

It looks like you want to include JSON in your webhook response. Look at the include-command-output-in-response and response-headers webhook properties. Your script will need to output JSON, and you'll likely need to send a Content-Type: application/json in the response headers.

moorereason avatar Sep 23 '23 13:09 moorereason