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.
(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.
(do-with-channel-id channel-id f)
Impl for with-channel-id
macro.
Impl for `with-channel-id` macro.
(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.
(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.
(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.)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close