View source: R/layout_blocks.R
file_block | R Documentation |
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
file_block(external_id, block_id = NULL)
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. |
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.