Skip to content

Commit 0495601

Browse files
fwump38seratch
authored andcommitted
Set default_type for HeaderBlock text
1 parent aa2e9b2 commit 0495601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slack/web/classes/blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def __init__(
410410
super().__init__(type=self.type, block_id=block_id)
411411
show_unknown_key_warning(self, others)
412412

413-
self.text = TextObject.parse(text)
413+
self.text = TextObject.parse(text, default_type=PlainTextObject.type)
414414

415415
@JsonValidator("text attribute must be specified")
416416
def _validate_text_populated(self):

0 commit comments

Comments
 (0)