Skip to content
This repository was archived by the owner on Jul 23, 2019. It is now read-only.

Commit bd6edfa

Browse files
authored
Merge pull request #87 from shanedewael/1.1.0
v1.1.0
2 parents af1688c + 9cfdcba commit bd6edfa

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/reference.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ following table describes it fully.
156156
| --- | --- | --- |
157157
| 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. |
158158
| [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 |
160162
| [matchingConstraints.unfurl] | <code>boolean</code> | when `true` only match actions from an unfurl |
161163
| callback | [<code>ActionHandler</code>](#module_adapter--module.exports..SlackMessageAdapter..ActionHandler) | the function to run when an action is matched |
162164

@@ -181,8 +183,10 @@ following table describes it fully
181183
| Param | Type | Description |
182184
| --- | --- | --- |
183185
| 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 |
186190
| callback | [<code>OptionsHandler</code>](#module_adapter--module.exports..SlackMessageAdapter..OptionsHandler) | the function to run when an options request is matched |
187191

188192

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@slack/interactive-messages",
3-
"version": "1.0.2",
3+
"version": "1.1.0",
44
"description": "Slack Interactive Messages module",
55
"main": "dist/index.js",
66
"repository": "https://github.com/slackapi/node-slack-interactive-messages.git",

0 commit comments

Comments
 (0)