0
 app.command("/hello", (req, ctx) -> {
            List<LayoutBlock> blocks = asBlocks(
                    section(section -> section.text(markdownText("select the meeting option"))),
                    actions(actions -> actions.elements(asElements(multiUsersSelect(b -> b.actionId("users-select").placeholder(plainText("select a option"))))))
            );
            return ctx.ack(blocks);
        });

这是我的代码。在/hello命令下,应该出现多用户选择菜单,但我收到了这个错误/hello failed with the error "invalid_blocks"

我也给users:read了机器人的许可。

可能是什么原因?

更新:

我能够使它与此代码一起使用

section(section -> section.blockId("select-users").text(markdownText("*Select Users*")).accessory(multiUsersSelect(select -> select.actionId("select-user-action").placeholder(plainText("Select users that should recieve your survey")))))

                
4

0 回答 0