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/_basic/acknowledging_events.md
+15-19Lines changed: 15 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,29 +9,25 @@ order: 7
9
9
10
10
Actions, commands, and options events must **always** be acknowledged using the `ack()` function. This lets Slack know that the event was received and updates the Slack user interface accordingly.
11
11
12
-
Depending on the type of event, your acknowledgement may be different. For example, when acknowledging a dialog submission you will call `ack()` with validation errors if the submission contains errors, or with no parameters if the submission is valid.
12
+
Depending on the type of event, your acknowledgement may be different. For example, when acknowledging a menu selection associated with an external data source, you would call `ack()` with a list of relevant [options](https://api.slack.com/reference/block-kit/composition-objects#option).
13
13
14
14
We recommend calling `ack()` right away before sending a new message or fetching information from your database since you only have 3 seconds to respond.
15
15
16
16
</div>
17
17
18
18
```python
19
-
import re
20
-
21
-
# Listen for dialog submissions with a callback_id of ticket_submit
Copy file name to clipboardExpand all lines: docs/_basic/responding_actions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ order: 6
7
7
8
8
<divclass="section-content">
9
9
10
-
There are two main ways to respond to actions. The first (and most common) way is to use the `say` function. The `say` function sends a message back to the conversation where the incoming event took place.
10
+
There are two main ways to respond to actions. The first (and most common) way is to use `say()`, which sends a message back to the conversation where the incoming event took place.
11
11
12
12
The second way to respond to actions is using `respond()`, which is a utility to use the `response_url` associated with the action.
0 commit comments