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 4592b20 commit 2133625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_basic/opening_modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Read more about modal composition in the <a href="https://api.slack.com/surfaces

```javascript
// Listen for a slash command invocation
app.command('/ticket', ({ ack, payload, context }) => {
app.command('/ticket', ({ ack, body, context }) => {
// Acknowledge the command request
ack();

try {
const result = app.client.views.open({
token: context.botToken,
// Pass a valid trigger_id within 3 seconds of receiving it
trigger_id: payload.trigger_id,
trigger_id: body.trigger_id,
// View payload
view: {
type: 'modal',
Expand Down

0 comments on commit 2133625

Please sign in to comment.