Create slack block that contains text

block_text(
  text,
  type = c("mrkdwn", "plain_text"),
  emoji = NULL,
  verbatim = NULL
)

Arguments

text

character, the text for the block.

type

character, type of block, Default: c("mrkdwn", "plain_text")

emoji

logical, Indicates whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text. Default: NULL

verbatim

When set to FALSE (Default value when NULL) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed. Default: NULL

Value

block_text class

Details

For more details see slack documentation

See also

Other compositions: block_confirm(), block_option_groups(), block_option()

Examples

block_text('A message *with some bold text* and _some italicized text_.')
#> { #> "type": "mrkdwn", #> "text": "A message *with some bold text* and _some italicized text_." #> }