Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attachments to the blockkit #43

Closed
jldmota opened this issue Dec 8, 2021 · 3 comments
Closed

Add attachments to the blockkit #43

jldmota opened this issue Dec 8, 2021 · 3 comments

Comments

@jldmota
Copy link

jldmota commented Dec 8, 2021

json example

"attachments": [
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Alternative hotel options"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://example.com|Bates Motel> ⭐⭐"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "View",
"emoji": true
},
"value": "view_alternate_1"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://example.com|The Great Northern Hotel> ⭐⭐⭐⭐"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "View",
"emoji": true
},
"value": "view_alternate_2"
}
}
]
}
]
}

@BenKuhar
Copy link

Would be nice to have this to wrap blocks in a message with the attachments color bar applied.

@pykenny
Copy link
Contributor

pykenny commented Aug 27, 2023

Unfortunately Slack officials has labeled attachments as legacy feature, and discourage use of attachments for messaging. (they lied a bit in the statement, because a long message can still be truncated by Slack client in message thread, even when using "pure" block elements only in message content, however.)

@imryche
Copy link
Owner

imryche commented Sep 2, 2023

Closing this since attachments are a legacy feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants