diff --git a/docs/_basic/ja_opening_modals.md b/docs/_basic/ja_opening_modals.md index c1ca60e4e..fd59010a8 100644 --- a/docs/_basic/ja_opening_modals.md +++ b/docs/_basic/ja_opening_modals.md @@ -16,7 +16,7 @@ order: 9 ```javascript // コマンド起動をリッスン -app.command('/ticket', ({ ack, payload, context }) => { +app.command('/ticket', ({ ack, body, context }) => { // コマンドのリクエストを確認 ack(); @@ -24,7 +24,7 @@ app.command('/ticket', ({ ack, payload, context }) => { const result = app.client.views.open({ token: context.botToken, // 適切な trigger_id を受け取ってから 3 秒以内に渡す - trigger_id: payload.trigger_id, + trigger_id: body.trigger_id, // view の値をペイロードに含む view: { type: 'modal', diff --git a/docs/_basic/opening_modals.md b/docs/_basic/opening_modals.md index 5b4dae379..750a7a4df 100644 --- a/docs/_basic/opening_modals.md +++ b/docs/_basic/opening_modals.md @@ -15,7 +15,7 @@ Read more about modal composition in the