Skip to content

Commit

Permalink
Merge pull request #27 from incident-io/ejs/omit-skinton-empty
Browse files Browse the repository at this point in the history
Omit SkinTone on emojis if empty
  • Loading branch information
estephinson authored Jan 30, 2024
2 parents 132e468 + c65a850 commit 85875d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block_rich_text.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func NewRichTextSectionUserElement(userID string, style *RichTextSectionTextStyl
type RichTextSectionEmojiElement struct {
Type RichTextSectionElementType `json:"type"`
Name string `json:"name"`
SkinTone int `json:"skin_tone"`
SkinTone int `json:"skin_tone,omitempty"`
Style *RichTextSectionTextStyle `json:"style,omitempty"`
}

Expand Down

0 comments on commit 85875d8

Please sign in to comment.