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