From 12a3f2a0d35e132e42594d14f01e3234813d843f Mon Sep 17 00:00:00 2001 From: yamashush <38120991+yamashush@users.noreply.github.com> Date: Fri, 22 Nov 2019 18:43:08 +0900 Subject: [PATCH] :pencil: move 'type' to be nested inside 'view' --- docs/_basic/ja_updating_pushing_modals.md | 2 +- docs/_basic/updating_pushing_modals.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: {