Debian Codegraph @

block_unknown.go

raw symbols SCIP
1 package slack
2
3 // UnknownBlock represents a block type that is not yet known. This block type exists to prevent Slack from introducing
4 // new and unknown block types that break this library.
5 type UnknownBlock struct {
6 Type MessageBlockType `json:"type"`
7 BlockID string `json:"block_id,omitempty"`
8 }
9
10 // BlockType returns the type of the block
11 func (b UnknownBlock) BlockType() MessageBlockType {
12 return b.Type
13 }