Repository navigation
doc: make events in the document clearer #415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e51645c
59b56ba
2e505f3
7ac5e89
5ec2245
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,9 +7,9 @@ order: 9 | |
|
|
||
| <div class="section-content"> | ||
|
|
||
| Your app can use the `command()` method to listen to incoming slash command events. The method requires a `command_name` of type `str`. | ||
| Your app can use the `command()` method to listen to incoming slash command requests. The method requires a `command_name` of type `str`. | ||
|
|
||
| Commands must be acknowledged with `ack()` to inform Slack your app has received the event. | ||
| Commands must be acknowledged with `ack()` to inform Slack your app has received the request. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 10 in this file also uses events. Could you update that
|
||
|
|
||
| There are two ways to respond to slash commands. The first way is to use `say()`, which accepts a string or JSON payload. The second is `respond()` which is a utility for the `response_url`. These are explained in more depth in the [responding to actions](#action-respond) section. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,9 +9,9 @@ order: 8 | |
|
|
||
| The `shortcut()` method supports both [global shortcuts](https://api.slack.com/interactivity/shortcuts/using#global_shortcuts) and [message shortcuts](https://api.slack.com/interactivity/shortcuts/using#message_shortcuts). | ||
|
|
||
| Shortcuts are invokable entry points to apps. Global shortcuts are available from within search and text composer area in Slack. Message shortcuts are available in the context menus of messages. Your app can use the `shortcut()` method to listen to incoming shortcut events. The method requires a `callback_id` parameter of type `str` or `re.Pattern`. | ||
| Shortcuts are invokable entry points to apps. Global shortcuts are available from within search and text composer area in Slack. Message shortcuts are available in the context menus of messages. Your app can use the `shortcut()` method to listen to incoming shortcut requests. The method requires a `callback_id` parameter of type `str` or `re.Pattern`. | ||
|
|
||
| Shortcuts must be acknowledged with `ack()` to inform Slack that your app has received the event. | ||
| Shortcuts must be acknowledged with `ack()` to inform Slack that your app has received the request. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should update line 12 in this file to also use
|
||
|
|
||
| Shortcuts include a `trigger_id` which an app can use to [open a modal](#creating-modals) that confirms the action the user is taking. | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 21 in this file also says
view_submission event. Same with line 10. Could you update these as well?