file_block: File Block

View source: R/layout_blocks.R

file_blockR Documentation

File Block

Description

Displays a remote file. You can't add this block to app surfaces directly, but it will show up when retrieving messages that contain remote files. If you want to add remote files to messages, follow our guide. Appears in surfaces: Messages

Usage

file_block(external_id, block_id = NULL)

Arguments

external_id

The external unique ID for this file.

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#file

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


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