Skip to content

Commit 9197fa7

Browse files
committed
fix: remove icon_url from url_source block element
1 parent 610de5b commit 9197fa7

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

slack_sdk/models/blocks/block_elements.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,6 @@ def attributes(self) -> Set[str]: # type: ignore[override]
16681668
{
16691669
"url",
16701670
"text",
1671-
"icon_url",
16721671
}
16731672
)
16741673

@@ -1677,7 +1676,6 @@ def __init__(
16771676
*,
16781677
url: str,
16791678
text: str,
1680-
icon_url: Optional[str] = None,
16811679
**others: Dict,
16821680
):
16831681
"""
@@ -1687,13 +1685,11 @@ def __init__(
16871685
Args:
16881686
url (required): The URL type source.
16891687
text (required): Display text for the URL.
1690-
icon_url: Optional icon URL to display with the source.
16911688
"""
16921689
super().__init__(type=self.type)
16931690
show_unknown_key_warning(self, others)
16941691
self.url = url
16951692
self.text = text
1696-
self.icon_url = icon_url
16971693

16981694

16991695
# -------------------------------------------------

tests/slack_sdk/models/test_chunks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def test_json(self):
6666
UrlSourceElement(
6767
text="The Free Encyclopedia",
6868
url="https://wikipedia.org",
69-
icon_url="https://example.com/globe.png",
7069
),
7170
],
7271
).to_dict(),
@@ -86,7 +85,6 @@ def test_json(self):
8685
"type": "url",
8786
"text": "The Free Encyclopedia",
8887
"url": "https://wikipedia.org",
89-
"icon_url": "https://example.com/globe.png",
9088
},
9189
],
9290
},

0 commit comments

Comments
 (0)