Skip to content

Commit

Permalink
Merge pull request #410 from seratch/issue-348
Browse files Browse the repository at this point in the history
Fix #348 app.view() is not described in the README
  • Loading branch information
stevengill authored Feb 18, 2020
2 parents 9c63395 + 7989abb commit 30ecca7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,19 @@ event, there's a method to attach a listener function.
// Listen for an event from the Events API
app.event(eventType, fn);

// Listen for an action from a block element (buttons, menus, etc), dialog submission, message action, or legacy action
// Listen for an action from a block element (buttons, menus, etc)
app.action(actionId, fn);
// Listen for dialog submission, message action, or legacy action
app.action({ callback_id: callbackId }, fn);

// Listen for a slash command
app.command(commandName, fn);

// Listen for options requests (from menus with an external data source)
app.options(actionId, fn);

// Listen for modal view requests
app.view(callbackId, fn);
```

There's a special method that's provided as a convenience to handle Events API events with the type `message`. Also, you
Expand Down

0 comments on commit 30ecca7

Please sign in to comment.