From 69981898f827dcf9603d6980cedfd7ec6bea3776 Mon Sep 17 00:00:00 2001 From: Manjish Date: Thu, 19 Sep 2024 20:28:16 +0545 Subject: [PATCH] fix: Updated RichTextInputBlockElement InitialValue data type (#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 #1276](https://github.com/slack-go/slack/issues/1276) Updated the datatype of RichTextInputBlockElement InitialValue from string to *RichTextBlock --- block_element.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_element.go b/block_element.go index a2b755be2..06bffe358 100644 --- a/block_element.go +++ b/block_element.go @@ -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"` }