You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 23, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: docs/reference.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,9 @@ following table describes it fully.
156
156
| --- | --- | --- |
157
157
| matchingConstraints | <code>Object</code> \| <code>string</code> \| <code>RegExp</code> | the callback ID (as a string or RegExp) or an object describing the constraints to match actions for the handler. |
158
158
|[matchingConstraints.callbackId]| <code>string</code> \| <code>RegExp</code> | a string or RegExp to match against the `callback_id`|
159
-
|[matchingConstraints.type]| <code>string</code> | when `select` only for menu selections, when `button` only for buttton presses, or when `dialog_submission` only for dialog submissions |
159
+
|[matchingConstraints.blockId]| <code>string</code> \| <code>RegExp</code> | a string or RegExp to match against the `block_id`|
160
+
|[matchingConstraints.actionId]| <code>string</code> \| <code>RegExp</code> | a string or RegExp to match against the `action_id`|
161
+
|[matchingConstraints.type]| <code>string</code> | valid types include all [actions block elements](https://api.slack.com/reference/messaging/interactive-components), `select` only for menu selections, or `dialog_submission` only for dialog submissions |
160
162
|[matchingConstraints.unfurl]| <code>boolean</code> | when `true` only match actions from an unfurl |
161
163
| callback |[<code>ActionHandler</code>](#module_adapter--module.exports..SlackMessageAdapter..ActionHandler)| the function to run when an action is matched |
162
164
@@ -181,8 +183,10 @@ following table describes it fully
181
183
| Param | Type | Description |
182
184
| --- | --- | --- |
183
185
| matchingConstraints | <code>object</code> | the callback ID (as a string or RegExp) or an object describing the constraints to select options requests for the handler. |
184
-
|[matchingConstraints.callbackId]| <code>string</code> \| <code>RegExp</code> | a string or RegExxp to match against the `callback_id`|
185
-
|[matchingConstraints.within]| <code>string</code> | when `interactive_message` only for menus in an interactive message, or when `dialog` only for menus in a dialog |
186
+
|[matchingConstraints.callbackId]| <code>string</code> \| <code>RegExp</code> | a string or RegExp to match against the `callback_id`|
187
+
|[matchingConstraints.blockId]| <code>string</code> \| <code>RegExp</code> | a string or RegExp to match against the `block_id`|
188
+
|[matchingConstraints.actionId]| <code>string</code> \| <code>RegExp</code> | a string or RegExp to match against the `action_id`|
189
+
|[matchingConstraints.within]| <code>string</code> |`block_actions` only for external select in actions block, `interactive_message` only for menus in an interactive message, or `dialog` only for menus in a dialog |
186
190
| callback |[<code>OptionsHandler</code>](#module_adapter--module.exports..SlackMessageAdapter..OptionsHandler)| the function to run when an options request is matched |
0 commit comments