-
Notifications
You must be signed in to change notification settings - Fork 662
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
invalid_blocks
error when using type rich_text
#1527
Comments
Hey @marcopiii - When I put those blocks you supplied into block kit builder, I get a type error, so I'm curious whether there's a version of the sample you provided that block kit builder accepts, or what you're referencing that refers to Based on this there is |
I'm can't see any reference to a version of the tool. If it can be useful this is the exact fragment that should allow you to recreate the same block
and this is the preview
yes, I saw the supported types and i tried to cast it with an |
@marcopiii Unfortunately, "rich_text" blocks are unavailable for 3rd party Slack apps. Only Slack client apps (Desktop/Web/iOS/Android) can send those blocks to Slack API servers. Block Kit Builder may work with more blocks like you've observed because the tool can be used for crafting a human message too (You can find "Send to Slack" button). Thus, please go with the blocks listed here instead. |
@seratch thank you for the clarification 🙏 A bit off-topic but, is there any other way to represent a real bullet point list for a 3rd part app (I mean, besides using some visual trick like |
@marcopiii I see your point here very well ... but
this is the only way to list items in Slack text messages 🙇 If everything is clear now, would you mind closing this issue? |
Is that still true? I mean, I can definitely craft API requests to send rich_text blocks and it just works |
@vvo Great question! Almost a month ago, the platform unlocked the feature to 3rd party apps, so as you've noticed, you can now use rich_text blocks in a message and modal inputs! See also: |
Nice :) |
Packages:
@slack/web-api
Reproducible in:
The Slack SDK version
Node.js runtime version
OS info
Steps to reproduce:
Expected result:
I would expect this to work since in the Slack Block Kit Builder it seems a legit block
Actual result:
The text was updated successfully, but these errors were encountered: