Update vendor slack-go/slack (#1068)

This commit is contained in:
Wim
2020-03-28 23:50:47 +01:00
committed by GitHub
parent 0df2539641
commit 092ca1cd67
23 changed files with 1001 additions and 189 deletions

View File

@@ -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,