Skip to content

Commit

Permalink
Fix unintended json marshalling error
Browse files Browse the repository at this point in the history
resolve: #851
  • Loading branch information
kanata2 committed Nov 24, 2020
1 parent 63ea3d2 commit 624a7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,7 +19,7 @@ func NewActionBlock(blockID string, elements ...BlockElement) *ActionBlock {
return &ActionBlock{
Type: MBTAction,
BlockID: blockID,
Elements: BlockElements{
Elements: &BlockElements{
ElementSet: elements,
},
}
Expand Down

0 comments on commit 624a7d5

Please sign in to comment.