Liking cljdoc? Tell your friends :D

metabase.metabot.slack

Logic related to posting messages [synchronously and asynchronously] to Slack and handling errors.

Logic related to posting messages [synchronously and asynchronously] to Slack and handling errors.
raw docstring

asynccljmacro

(async & body)

Execute body asynchronously, wrapped in a try-catch block. If an Exception is thrown, replies to the current Slack channel with the exception message and logs the complete Exception to the logs.

Execute `body` asynchronously, wrapped in a try-catch block. If an Exception is thrown, replies to the current Slack
channel with the exception message and logs the complete Exception to the logs.
sourceraw docstring

do-asyncclj

(do-async f)

Impl for async macro.

Impl for `async` macro.
sourceraw docstring

do-with-channel-idclj

(do-with-channel-id channel-id f)

Impl for with-channel-id macro.

Impl for `with-channel-id` macro.
sourceraw docstring

format-exceptionclj

(format-exception e)

Format a Throwable the way we'd like for posting it on Slack.

Format a `Throwable` the way we'd like for posting it on Slack.
sourceraw docstring

post-chat-message!clj

(post-chat-message! text-or-nil)
(post-chat-message! text-or-nil attachments)

Post a MetaBot response Slack message. Goes to channel where the MetaBot command we're replying to was posted.

Post a MetaBot response Slack message. Goes to channel where the MetaBot command we're replying to was posted.
sourceraw docstring

with-channel-idcljmacro

(with-channel-id channel-id & body)

Execute body with channel-id as the current Slack channel; all messages will be posted to that channel. (This is bound to the channel that recieved the MetaBot command we're currently handling by the metabase.metabot.events/handle-slack-event event handler.)

Execute `body` with `channel-id` as the current Slack channel; all messages will be posted to that channel. (This is
bound to the channel that recieved the MetaBot command we're currently handling by the
`metabase.metabot.events/handle-slack-event` event handler.)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close