-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrich_text_quote.py
More file actions
33 lines (30 loc) · 957 Bytes
/
Copy pathrich_text_quote.py
File metadata and controls
33 lines (30 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from slack_sdk.models.blocks import RichTextBlock
from slack_sdk.models.blocks.block_elements import (
RichTextElementParts,
RichTextQuoteElement,
RichTextSectionElement,
)
def example01() -> RichTextBlock:
"""
Displays a rich text quote block.
https://docs.slack.dev/reference/block-kit/block-elements/rich-text-quote-element/
A rich text block with a quote followed by a section.
"""
block = RichTextBlock(
block_id="Vrzsu",
elements=[
RichTextQuoteElement(
elements=[
RichTextElementParts.Text(
text="What we need is good examples in our documentation."
),
]
),
RichTextSectionElement(
elements=[
RichTextElementParts.Text(text="Yes - I completely agree, Luke!"),
]
),
],
)
return block