Skip to content

Commit

Permalink
fix: Updated RichTextInputBlockElement InitialValue data type (slack-…
Browse files Browse the repository at this point in the history
…go#1320)

##### 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 slack-go#1276](slack-go#1276)
Updated the datatype of RichTextInputBlockElement InitialValue from
string to *RichTextBlock
  • Loading branch information
Manjish authored and gautamr95 committed Dec 13, 2024
1 parent f479b02 commit 270d51d
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 270d51d

Please sign in to comment.