diff --git a/docs/_basic/ja_updating_pushing_modals.md b/docs/_basic/ja_updating_pushing_modals.md index b2cdbfd18..67529eb24 100644 --- a/docs/_basic/ja_updating_pushing_modals.md +++ b/docs/_basic/ja_updating_pushing_modals.md @@ -26,12 +26,12 @@ app.action('button_abc', ({ ack, body, context }) => { try { const result = app.client.views.update({ - type: 'modal', token: context.botToken, // リクエストに含まれる view_id を渡す view_id: body.view.id, // 更新された view の値をペイロードに含む view: { + type: 'modal', // callback_id が view を特定するための識別子 callback_id: 'view_1', title: { diff --git a/docs/_basic/updating_pushing_modals.md b/docs/_basic/updating_pushing_modals.md index 65e5f3032..1492eea8f 100644 --- a/docs/_basic/updating_pushing_modals.md +++ b/docs/_basic/updating_pushing_modals.md @@ -25,12 +25,12 @@ app.action('button_abc', ({ ack, body, context }) => { try { const result = app.client.views.update({ - type: 'modal', token: context.botToken, // Pass the view_id view_id: body.view.id, // View payload with updated blocks view: { + type: 'modal', // View identifier callback_id: 'view_1', title: {