Skip to main content

slack.contextblock

Home > @runlightyear/slack > ContextBlock

ContextBlock interface

Signature:
interface ContextBlock 

Required Properties

PropertyModifiersTypeDescription
elementsArray<ImageBlock | TextObject>An array of image elements and text objects. Maximum number of items is 10.
type"context"

Optional Properties

PropertyModifiersTypeDescription
blockId?stringA 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.