forked from lug/matterbridge
Update dependencies (#1813)
This commit is contained in:
6
vendor/github.com/slack-go/slack/block_element.go
generated
vendored
6
vendor/github.com/slack-go/slack/block_element.go
generated
vendored
@@ -167,6 +167,12 @@ func (s *ButtonBlockElement) WithStyle(style Style) *ButtonBlockElement {
|
||||
return s
|
||||
}
|
||||
|
||||
// WithConfirm adds a confirmation dialogue to the button object and returns the modified ButtonBlockElement
|
||||
func (s *ButtonBlockElement) WithConfirm(confirm *ConfirmationBlockObject) *ButtonBlockElement {
|
||||
s.Confirm = confirm
|
||||
return s
|
||||
}
|
||||
|
||||
// NewButtonBlockElement returns an instance of a new button element to be used within a block
|
||||
func NewButtonBlockElement(actionID, value string, text *TextBlockObject) *ButtonBlockElement {
|
||||
return &ButtonBlockElement{
|
||||
|
||||
Reference in New Issue
Block a user