Skip to content

Commit

Permalink
Merge pull request #977 from karl-johan-grahn/dispatch-action-config
Browse files Browse the repository at this point in the history
Dispatch action config
  • Loading branch information
kanata2 committed Oct 8, 2021
2 parents 4d3d964 + 17f8331 commit 0cd594d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions block_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,18 @@ func NewTimePickerBlockElement(actionID string) *TimePickerBlockElement {
//
// More Information: https://api.slack.com/reference/block-kit/block-elements#input
type PlainTextInputBlockElement struct {
Type MessageElementType `json:"type"`
ActionID string `json:"action_id,omitempty"`
Placeholder *TextBlockObject `json:"placeholder,omitempty"`
InitialValue string `json:"initial_value,omitempty"`
Multiline bool `json:"multiline,omitempty"`
MinLength int `json:"min_length,omitempty"`
MaxLength int `json:"max_length,omitempty"`
Type MessageElementType `json:"type"`
ActionID string `json:"action_id,omitempty"`
Placeholder *TextBlockObject `json:"placeholder,omitempty"`
InitialValue string `json:"initial_value,omitempty"`
Multiline bool `json:"multiline,omitempty"`
MinLength int `json:"min_length,omitempty"`
MaxLength int `json:"max_length,omitempty"`
DispatchActionConfig *DispatchActionConfig `json:"dispatch_action_config,omitempty"`
}

type DispatchActionConfig struct {
TriggerActionsOn []string `json:"trigger_actions_on,omitempty"`
}

// ElementType returns the type of the Element
Expand Down

0 comments on commit 0cd594d

Please sign in to comment.