用户在松弛块套件中选择“无效块”错误

问题描述

 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")))))

                

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)