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

Support for Blocks #14

Open
michaellegner opened this issue Feb 16, 2020 · 2 comments
Open

Support for Blocks #14

michaellegner opened this issue Feb 16, 2020 · 2 comments

Comments

@michaellegner
Copy link

michaellegner commented Feb 16, 2020

How about support for Blocks?

This is the description for Attachments in the Slack API:
"An array of legacy secondary attachments. We recommend you use blocks instead."

First level of support could be just sending the JSON string to the API? That is, adding Blocks to the Message.

https://api.slack.com/block-kit/building

@michaellegner
Copy link
Author

I just tried it on a clone of the repo and by just adding a string property Blocks I managed to send a nice looking message. Perhaps building the json string is another tool's responsibility. Here I just need the Blocks to be serialized with the rest of the message.

@prjseal
Copy link
Owner

prjseal commented Feb 16, 2020

Thanks for letting me know about the new blocks feature. I’ll add it to the project in the coming weeks.

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

2 participants