Skip to content

Commit

Permalink
Merge pull request #1054 from liftM/fluent-confirm-with-style
Browse files Browse the repository at this point in the history
`WithStyle` for `ConfirmationBlockObject`s should be fluent
  • Loading branch information
kanata2 committed Apr 16, 2022
2 parents 27b91d9 + c341329 commit 03f86be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block_object.go
Expand Up @@ -187,8 +187,9 @@ func (s ConfirmationBlockObject) validateType() MessageObjectType {
}

// WithStyle add styling to confirmation object
func (s *ConfirmationBlockObject) WithStyle(style Style) {
func (s *ConfirmationBlockObject) WithStyle(style Style) *ConfirmationBlockObject {
s.Style = style
return s
}

// NewConfirmationBlockObject returns an instance of a new Confirmation Block Object
Expand Down

0 comments on commit 03f86be

Please sign in to comment.