Skip to content

Commit

Permalink
Changing payload to body
Browse files Browse the repository at this point in the history
  • Loading branch information
greggTime authored Mar 4, 2020
1 parent 217fe72 commit 4592b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_basic/ja_opening_modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ order: 9

```javascript
// コマンド起動をリッスン
app.command('/ticket', ({ ack, payload, context }) => {
app.command('/ticket', ({ ack, body, context }) => {
// コマンドのリクエストを確認
ack();

try {
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',
Expand Down

0 comments on commit 4592b20

Please sign in to comment.