Skip to main content

@slack/types / DividerBlock

Interface: DividerBlock

Defined in: block-kit/blocks.ts:234

Description​

Visually separates pieces of info inside of a message. A content divider, like an <hr>, to split up different blocks inside of a message. The divider block is nice and neat, requiring only a type.

See​

Divider block reference.

Extends​

Properties​

block_id?​

optional block_id?: string;

Defined in: block-kit/blocks.ts:49

Description​

A string acting as a unique identifier for a block. If not specified, a block_id 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.

Inherited from​

Block.block_id


type​

type: "divider";

Defined in: block-kit/blocks.ts:238

Description​

The type of block. For a divider block, type is always divider.

Overrides​

Block.type