From 624a7d518863c327efb99719cada56aa1ed75bed Mon Sep 17 00:00:00 2001 From: Naoki Kanatani Date: Wed, 25 Nov 2020 05:54:50 +0900 Subject: [PATCH] Fix unintended json marshalling error resolve: #851 --- block_action.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block_action.go b/block_action.go index fe46a95cf..c15e4a3f7 100644 --- a/block_action.go +++ b/block_action.go @@ -6,7 +6,7 @@ package slack type ActionBlock struct { Type MessageBlockType `json:"type"` BlockID string `json:"block_id,omitempty"` - Elements BlockElements `json:"elements"` + Elements *BlockElements `json:"elements"` } // BlockType returns the type of the block @@ -19,7 +19,7 @@ func NewActionBlock(blockID string, elements ...BlockElement) *ActionBlock { return &ActionBlock{ Type: MBTAction, BlockID: blockID, - Elements: BlockElements{ + Elements: &BlockElements{ ElementSet: elements, }, }