Skip to content

Commit

Permalink
Merge pull request #893 from incident-io/add-dispatch-action
Browse files Browse the repository at this point in the history
Add `dispatch_action` to input blocks
  • Loading branch information
kanata2 authored Feb 15, 2021
2 parents 2fcee53 + a081376 commit 841f33c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions block_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ package slack
//
// More Information: https://api.slack.com/reference/block-kit/blocks#input
type InputBlock struct {
Type MessageBlockType `json:"type"`
BlockID string `json:"block_id,omitempty"`
Label *TextBlockObject `json:"label"`
Element BlockElement `json:"element"`
Hint *TextBlockObject `json:"hint,omitempty"`
Optional bool `json:"optional,omitempty"`
Type MessageBlockType `json:"type"`
BlockID string `json:"block_id,omitempty"`
Label *TextBlockObject `json:"label"`
Element BlockElement `json:"element"`
Hint *TextBlockObject `json:"hint,omitempty"`
Optional bool `json:"optional,omitempty"`
DispatchAction bool `json:"dispatch_action,omitempty"`
}

// BlockType returns the type of the block
Expand Down

0 comments on commit 841f33c

Please sign in to comment.