From 4c10928afb60916e275ce7dc3001405ed6600750 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Mon, 17 Feb 2020 21:24:20 +0900 Subject: [PATCH] Fix #348 app.view() is not described in the README --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ab529bc99..24134744f 100644 --- a/README.md +++ b/README.md @@ -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