block_text: Create a block for text

View source: R/compositions.R

block_textR Documentation

Create a block for text

Description

Create slack block that contains text

Usage

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

Details

For more details see slack documentation

Value

block_text class

See Also

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

Examples

block_text('A message *with some bold text* and _some italicized text_.')

yonicd/slackblocks documentation built on March 2, 2023, 6:53 a.m.