0
0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-03 08:08:34 +00:00
crazy-max_diun/vendor/github.com/nlopes/slack/block_divider.go
2024-12-14 22:30:21 +01:00

23 lines
574 B
Go

package slack
// DividerBlock for displaying a divider line between blocks (similar to <hr> tag in html)
//
// More Information: https://api.slack.com/reference/messaging/blocks#divider
type DividerBlock struct {
Type MessageBlockType `json:"type"`
BlockID string `json:"block_id,omitempty"`
}
// BlockType returns the type of the block
func (s DividerBlock) BlockType() MessageBlockType {
return s.Type
}
// NewDividerBlock returns a new instance of a divider block
func NewDividerBlock() *DividerBlock {
return &DividerBlock{
Type: MBTDivider,
}
}