Skip to content

Commit

Permalink
Fix #348 app.view() is not described in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 17, 2020
1 parent db940c5 commit 4c10928
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 4c10928

Please sign in to comment.