From 8aa572748afe0dd424e1b005589f135afd61bed7 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Thu, 5 Mar 2020 11:03:36 +0900 Subject: [PATCH] Bring #417 to v2 branch --- docs/_basic/ja_opening_modals.md | 4 ++-- docs/_basic/opening_modals.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_basic/ja_opening_modals.md b/docs/_basic/ja_opening_modals.md index 0ad1f3306..8e53e87d7 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', async ({ ack, payload, context }) => { +app.command('/ticket', async ({ ack, body, context }) => { // コマンドのリクエストを確認 await ack(); @@ -24,7 +24,7 @@ app.command('/ticket', async ({ ack, payload, context }) => { const result = await 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 60ce25f0d..a5fa72e39 100644 --- a/docs/_basic/opening_modals.md +++ b/docs/_basic/opening_modals.md @@ -15,7 +15,7 @@ Read more about modal composition in the