From c341329bff0326514484695d94a7897a1aa9d922 Mon Sep 17 00:00:00 2001 From: Leo Zhang Date: Tue, 12 Apr 2022 04:12:39 -0700 Subject: [PATCH] WithStyle should be fluent --- block_object.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block_object.go b/block_object.go index 5ced7f92a..f70405eba 100644 --- a/block_object.go +++ b/block_object.go @@ -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