forked from lug/matterbridge
Update vendor slack-go/slack (#1068)
This commit is contained in:
8
vendor/github.com/slack-go/slack/block_input.go
generated
vendored
8
vendor/github.com/slack-go/slack/block_input.go
generated
vendored
@@ -1,10 +1,8 @@
|
||||
package slack
|
||||
|
||||
// InputBlock defines data that is used to collect information from users -
|
||||
// it can hold a plain-text input element, a select menu element,
|
||||
// a multi-select menu element, or a datepicker.
|
||||
// InputBlock defines data that is used to display user input fields.
|
||||
//
|
||||
// More Information: https://api.slack.com/reference/messaging/blocks#input
|
||||
// More Information: https://api.slack.com/reference/block-kit/blocks#input
|
||||
type InputBlock struct {
|
||||
Type MessageBlockType `json:"type"`
|
||||
BlockID string `json:"block_id,omitempty"`
|
||||
@@ -19,7 +17,7 @@ func (s InputBlock) BlockType() MessageBlockType {
|
||||
return s.Type
|
||||
}
|
||||
|
||||
// NewInputBlock returns a new instance of an Input Block
|
||||
// NewInputBlock returns a new instance of an input block
|
||||
func NewInputBlock(blockID string, label *TextBlockObject, element BlockElement) *InputBlock {
|
||||
return &InputBlock{
|
||||
Type: MBTInput,
|
||||
|
||||
Reference in New Issue
Block a user