slack-web-2.2.0.0: Bindings for the Slack web API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Slack.Experimental.Blocks.Builder

Description

A builder for Slack blocks

Since: 2.1.0.0

Synopsis

Documentation

runBlockBuilder :: Monad m => BlockBuilder m () -> m [SlackBlock] Source #

Runs a block builder, yielding a result

headerBlock :: Monad m => SlackText -> BlockBuilder m () Source #

Header block.

The text is max 150 characters long.

https://api.slack.com/reference/block-kit/blocks#header

Since: 2.1.0.0

sectionBlock :: Monad m => SlackText -> BlockBuilder m () Source #

Section block. Similar in concept to a p or div tag in HTML.

https://api.slack.com/reference/block-kit/blocks#section

Since: 2.1.0.0

sectionBlockWithFields :: Monad m => SlackText -> [SlackText] -> BlockBuilder m () Source #

Section block. Similar in concept to a p or div tag in HTML.

https://api.slack.com/reference/block-kit/blocks#section

Since: 2.1.0.0

sectionBlockWithAccessory :: Monad m => SlackText -> SlackAction -> BlockBuilder m () Source #

Section block. Similar in concept to a p or div tag in HTML.

https://api.slack.com/reference/block-kit/blocks#section

Since: 2.1.0.0

dividerBlock :: Monad m => BlockBuilder m () Source #

Horizontal line. Similar to an html hr tag.

https://api.slack.com/reference/block-kit/blocks#divider

Since: 2.1.0.0

contextBlock :: Monad m => [SlackContent] -> BlockBuilder m () Source #

Context block: smaller, grey, text, and rendered inline. Like a span in HTML.

https://api.slack.com/reference/block-kit/blocks#context

newtype BlockKitBuilderMessage Source #

This is used for testing purposes so that you can paste these into the Block Kit builder and have the expected format:

https://app.slack.com/block-kit-builder

Since: 2.1.0.0

Constructors

BlockKitBuilderMessage 

Fields