Skip to content

Commit

Permalink
Rich text initial value should be a pointer
Browse files Browse the repository at this point in the history
This means we can pass a null value and it'll be omitted
  • Loading branch information
paprikati committed Nov 7, 2023
1 parent c66691b commit 89cfbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ type RichTextInputBlockElement struct {
Type MessageElementType `json:"type"`
ActionID string `json:"action_id,omitempty"`
Placeholder *TextBlockObject `json:"placeholder,omitempty"`
InitialValue RichTextBlock `json:"initial_value,omitempty"`
InitialValue *RichTextBlock `json:"initial_value,omitempty"`
DispatchActionConfig *DispatchActionConfig `json:"dispatch_action_config,omitempty"`
FocusOnLoad bool `json:"focus_on_load,omitempty"`
}
Expand Down

0 comments on commit 89cfbe7

Please sign in to comment.