Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcasting Slack Slash Command's Response #656

Open
minlaxz opened this issue Sep 21, 2023 · 1 comment
Open

Broadcasting Slack Slash Command's Response #656

minlaxz opened this issue Sep 21, 2023 · 1 comment
Labels

Comments

@minlaxz
Copy link

minlaxz commented Sep 21, 2023

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?

@moorereason
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants