微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

 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 举报,一经查实,本站将立刻删除。