From 092ca1cd678c44fa078bba11d4d219e61498342a Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 28 Mar 2020 23:50:47 +0100 Subject: Update vendor slack-go/slack (#1068) --- vendor/github.com/slack-go/slack/block_object.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vendor/github.com/slack-go/slack/block_object.go') diff --git a/vendor/github.com/slack-go/slack/block_object.go b/vendor/github.com/slack-go/slack/block_object.go index 824ec93c..cf3536d0 100644 --- a/vendor/github.com/slack-go/slack/block_object.go +++ b/vendor/github.com/slack-go/slack/block_object.go @@ -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. -- cgit v1.2.3