CGA1123 / slack-ruby-block-kit

A ruby wrapper for Slack's Block Kit
https://rubydoc.info/gems/slack-ruby-block-kit
MIT License
72 stars 30 forks source link

Implement use of response_url #170

Closed synth closed 1 year ago

synth commented 1 year ago

According to: https://api.slack.com/surfaces/modals/using#modal_response_url, blocks can pass through response_url_enabled to get a response_url which enables best practice usage of ephemeral messages. This seems like a basic adding and passing of a parameter in:

Happy to submit a PR.

CGA1123 commented 1 year ago

Hey @synth -- this sounds great!

I haven't made much use of modals via Slack Apps. Is ConversationSelect the only element which can have a response_url_enabled parameter? Or can this be generalised to all input blocks?

rinasergeeva commented 1 year ago

It seems these new parameters make sense only for some block elements. In particular,

synth commented 1 year ago

Thanks @CGA1123 and @rinasergeeva !