Skip to main content

slack.sectionblock

Home > @runlightyear/slack > SectionBlock

SectionBlock interface

Signature:
interface SectionBlock 

Required Properties

PropertyModifiersTypeDescription
type"section"

Optional Properties

PropertyModifiersTypeDescription
accessory?SectionCompatibleElementOne of the compatible element objects. Be sure to confirm the desired element works with section.
blockId?stringA string acting as a unique identifier for a block. If not specified, one will be generated. You can use this block_id when you receive an interaction payload to identify the source of the action. 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.
fields?TextObject[]Required if no text is provided. An array of text objects. Any text objects included with fields will be rendered in a compact format that allows for 2 columns of side-by-side text. Maximum number of items is 10. Maximum length for the text in each item is 2000 characters.
text?TextObject | stringThe text for the block, in the form of a text object. Maximum length for the text in this field is 3000 characters. This field is not required if a valid array of fields objects is provided instead.