diff --git a/docs/_basic/listening_modals.md b/docs/_basic/listening_modals.md index 736808d50..1d4678a44 100644 --- a/docs/_basic/listening_modals.md +++ b/docs/_basic/listening_modals.md @@ -80,7 +80,7 @@ app.view('view_b', async ({ ack, body, view, client }) => { You can use the `view` method to listen for `view_closed` requests, which Slack will send when the user closes a view. Note: the closed [view](https://api.slack.com/reference/block-kit/views) must have the `notify_on_close` field set to `true`. The event contains the respective `callback_id` of the closed view. -Please note that you have to specify the `type: 'view_closed'` in the constraint object explicitly, since otherwise the handler is not triggered. +💡 When listening for `view_closed` requests, you must pass an object containing `type: 'view_closed'` and the view `callback_id`. See below for an example of this: See the API documentation for more information about `view_closed.