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

@@ -145,6 +145,14 @@ func NewTextBlockObject(elementType, text string, emoji, verbatim bool) *TextBlo
}
}
// BlockType returns the type of the block
func (t TextBlockObject) BlockType() MessageBlockType {
if t.Type == "mrkdown" {
return MarkdownType
}
return PlainTextType
}
// ConfirmationBlockObject defines a dialog that provides a confirmation step to
// any interactive element. This dialog will ask the user to confirm their action by
// offering a confirm and deny buttons.