Slack BlockKit
Megaphone provides a fluent BlockKit API to build a SlackMessage
. It starts by calling the newSlackMessage
provided to the toSlack
method on the Notification.
For the individual methods and building blocks, please see the reference documentation.
An important callout is the dump
method. This method can writeDump
a memento of the SlackMessage
instance when passing the raw
parameter as true
. The default, however, is to writeDump
a URL that takes you to Slack's BlockKit Builder to visually see your message.
Example URL:
Last updated