image_block: Image Block

View source: R/layout_blocks.R

image_blockR Documentation

Image Block

Description

A simple image block, designed to make those cat photos really pop. Available in surfaces: Modals Messages Home tabs

Usage

image_block(image_url, alt_text, title = NULL, block_id = NULL)

Arguments

image_url

The URL of the image to be displayed. Maximum length for this field is 3000 characters.

alt_text

A plain-text summary of the image. This should not contain any markup. Maximum length for this field is 2000 characters.

title

An optional title for the image in the form of a text_object that can only be of type: plain_text. Maximum length for the text in this field is 2000 characters.

block_id

A string acting as a unique identifier for a block. If not specified, one will be generated. Maximum length for this field is 255 characters. block_id should be unique for each message and each iteration of a message. If a message is updated, use a new block_id.

See Also

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

Other Blocks: actions_block(), context_block(), divider_block(), file_block(), header_block(), input_block(), section_block()


samterfa/slackme documentation built on April 11, 2022, 3:29 a.m.