webhook
webhook copied to clipboard
Broadcasting Slack Slash Command's Response
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?
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.