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