Skip to content

Commit

Permalink
fix: Updated RichTextInputBlockElement InitialValue data type (#1320)
Browse files Browse the repository at this point in the history
##### Pull Request Guidelines

These are recommendations for pull requests.
They are strictly guidelines to help manage expectations.

##### PR preparation
Run `make pr-prep` from the root of the repository to run formatting,
linting and tests.

##### Should this be an issue instead
- [x] is it a convenience method? (no new functionality, streamlines
some use case)
- [ ] exposes a previously private type, const, method, etc.
- [ ] is it application specific (caching, retry logic, rate limiting,
etc)
- [ ] is it performance related.

Fix for [issue #1276](#1276)
Updated the datatype of RichTextInputBlockElement InitialValue from
string to *RichTextBlock
  • Loading branch information
Manjish authored Sep 19, 2024
1 parent cd4e26e commit 6998189
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 @@ -527,7 +527,7 @@ type RichTextInputBlockElement struct {
Type MessageElementType `json:"type"`
ActionID string `json:"action_id,omitempty"`
Placeholder *TextBlockObject `json:"placeholder,omitempty"`
InitialValue string `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 6998189

Please sign in to comment.