松弛块嵌套子弹点列表
我需要将API请求发送给Slack,其中包含包含嵌套子弹点列表的消息。我找到了以下对现有问题的答案: https://stackoverflow.com/a/68483110/166659015却又可悲的是,这仅显示一个普通的子弹点列表而不嵌套。
我找不到此Rich_text
和rich_text_list
类型的任何资源或文档。
如何利用Rich_text的块来创建嵌套的项目符号列表?
(我知道有解决方法,但是如果通过块中存在1维的子弹点,那么也应该以某种方式嵌套)
I need to send a API request to slack with a message containing a nested bullet point list. I've found the following answer to a existing question: https://stackoverflow.com/a/68483110/16659015 but sadly this only shows a normal bullet point list without nesting.
I couldn't find any resources or documentation to this rich_text
and rich_text_list
types and when trying different orders the block kit builder threw errors.
How can I utilize the blocks with rich_text to create a nested bullet point list?
(I know there are workarounds but if a 1 dimensional bulletpoint exists through blocks then a nested should also be possible somehow)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于像我这样的其他人,将来寻找这个问题是解决方案:
您可以在此处看到它: https://api.slack.com/tutorials/tracks/rich-text-tutorial
您可以看到在此处的块构建器中的演示。
这是从文档复制的示例代码。诀窍是仅在当前一个列表下方制作一个单独的列表块,并使用缩进属性:
},
For anyone else like me looking for this in the future here is the solution:
You can see it documented here: https://api.slack.com/tutorials/tracks/rich-text-tutorial
You can see a demo in the block builder here.
And here is the example code copied from the docs. The trick is simply to make a separate list block below your current one and use the indent property:
},