(message & args)
Define a message. Supports the common message definition defined here.
The spec does not require text AND blocks, but text is HIGHLY recommended by Slack.
Component usage:
[:message
"Fallback text for great good"
[:section {:block_id "B123"}
[:text "Text one"]]
[:section {:block_id "B456"}
[:text "Text two"]]]
With props:
[:message {:thread_ts "1049393493.23"}
"Fallback text only"]
With just text:
[:message "This is a text only message"]
With just blocks:
[:message
[:section {:block_id "B123"}
[:text "Text one"]]
[:section {:block_id "B456"}
[:text "Text two"]]]
Define a message. Supports the common message definition defined [here](https://api.slack.com/reference/messaging/payload). The spec does not require text AND blocks, but text is [HIGHLY recommended](https://api.slack.com/methods/chat.postMessage#text_usage) by Slack. Component usage: ```clojure [:message "Fallback text for great good" [:section {:block_id "B123"} [:text "Text one"]] [:section {:block_id "B456"} [:text "Text two"]]] ``` With props: ```clojure [:message {:thread_ts "1049393493.23"} "Fallback text only"] ``` With just text: ```clojure [:message "This is a text only message"] ``` With just blocks: ```clojure [:message [:section {:block_id "B123"} [:text "Text one"]] [:section {:block_id "B456"} [:text "Text two"]]] ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close