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
Copy file name to clipboardExpand all lines: docs/guides/bolt-basics.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,24 +34,25 @@ Here is the list of the available methods to dispatch events.
34
34
|**app.event**|event type: **Class\<Event\>**|[**Events API**]({{ site.url | append: site.baseurl }}/guides/events-api): Responds to any kinds of bot/user events you subscribe.|
35
35
|**app.message**|keyword: **String**\|**Pattern**|[**Events API**]({{ site.url | append: site.baseurl }}/guides/events-api): Responds to messages posted by a user only when the text in messages matches the given keyword or regular expressions.|
36
36
|**app.command**|command name: **String**\|**Pattern**|[**Slash Commands**]({{ site.url | append: site.baseurl }}/guides/slash-commands): Responds to slash command invocations in the workspace.|
37
-
|**app.messageAction**|callback_id: **String**\|**Pattern**|[**Actions**]({{ site.url | append: site.baseurl }}/guides/actions): Responds to user actions in message menus.|
38
37
|**app.blockAction**|action_id: **String**\|**Pattern**|[**Interactive Components**]({{ site.url | append: site.baseurl }}/guides/interactive-components): Responds to user actions (e.g., click a button, choose an item from select menus, radio buttons, etc.) in **blocks**. These events can be triggered in all the surfaces (messages, modals, and Home tabs).|
39
38
|**app.blockSuggestion**|action_id: **String**\|**Pattern**|[**Interactive Components**]({{ site.url | append: site.baseurl }}/guides/interactive-components): Responds to user actions to input a keyword (the length needs to be the `min_query_length` or longer) in select menus (external data source).|
40
39
|**app.viewSubmission**|callback_id: **String**\|**Pattern**|[**Modals**]({{ site.url | append: site.baseurl }}/guides/modals): Responds to data submissions in modals.|
41
40
|**app.viewClosed**|callback_id: **String**\|**Pattern**|[**Modals**]({{ site.url | append: site.baseurl }}/guides/modals): Responds to the events where users close modals by clicking Cancel buttons. The `notify_on_close` has to be `true` when opening/pushing the modal.|
41
+
|**app.globalShortcut**|callback_id: **String**\|**Pattern**|[**Shortcuts**]({{ site.url | append: site.baseurl }}/guides/shortcuts): Responds to global shortcut invocations.|
42
+
|**app.messageShortcut**|callback_id: **String**\|**Pattern**|[**Shortcuts**]({{ site.url | append: site.baseurl }}/guides/shortcuts): Responds to shortcut invocations in message menus.|
42
43
|**app.dialogSubmission**|callback_id: **String**\|**Pattern**|**Dialogs**: Responds to data submissions in dialogs.|
43
44
|**app.dialogSuggestion**|callback_id: **String**\|**Pattern**|**Dialogs**: Responds to requests to load options for `"external"` typed select menus in dialogs.|
44
45
|**app.dialogCancellation**|callback_id **String**\|**Pattern**|**Dialogs**: Responds to the events where users close dialogs by clicking Cancel buttons.|
45
-
|**app.attachmentAction**|callback_id: **String**\|**Pattern**|**Legacy Messaging**: Responds to user actions in **attachements**. These events can be triggered in only messages.|
46
+
|**app.attachmentAction**|callback_id: **String**\|**Pattern**|**Legacy Messaging**: Responds to user actions in **attachments**. These events can be triggered in only messages.|
46
47
47
48
## Development Guides by Feature
48
49
49
50
On these guide pages, you'll find a more concrete example code for each.
0 commit comments