Skip to content

Commit cddcc95

Browse files
committed
Fix errors in documents
1 parent e5f4821 commit cddcc95

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

docs/_basic/listening_actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You’ll notice in all `action()` examples, `ack()` is used. It is required to c
1515
</div>
1616

1717
```python
18-
# Your middleware will be called every time an interactive component with the action_id "approve_button" is triggered
18+
# Your listener will be called every time a block element with the action_id "approve_button" is triggered
1919
@app.action("approve_button")
2020
def update_message(ack):
2121
ack()

docs/_basic/listening_events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `event()` method requires an `eventType` of type `str`.
1414
</div>
1515

1616
```python
17-
# When a user joins the team, send a message in a predefined channel asking them to introduce themselves
17+
# When a user joins the workspace, send a message in a predefined channel asking them to introduce themselves
1818
@app.event("team_join")
1919
def ask_for_introduction(event, say):
2020
welcome_channel_id = "C12345"
@@ -37,7 +37,7 @@ You can filter on subtypes of events by passing in the additional key `subtype`.
3737
</div>
3838

3939
```python
40-
# Matches all messages from bot users
40+
# Matches all modified messages
4141
@app.event({
4242
"type": "message",
4343
"subtype": "message_changed"

docs/_basic/listening_responding_shortcuts.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ When setting up shortcuts within your app configuration, as with other URLs, you
2222
</div>
2323

2424
```python
25-
2625
# The open_modal shortcut listens to a shortcut with the callback_id "open_modal"
2726
@app.shortcut("open_modal")
2827
def open_modal(ack, shortcut, client):
2928
# Acknowledge the shortcut request
3029
ack()
31-
# Call the views_open method using one of the built-in WebClients
30+
# Call the views_open method using the built-in WebClient
3231
client.views_open(
3332
trigger_id=shortcut["trigger_id"],
3433
# A simple view payload for a modal
@@ -68,8 +67,7 @@ def open_modal(ack, shortcut, client):
6867
</div>
6968

7069
```python
71-
72-
# Your middleware will only be called when the callback_id matches 'open_modal' AND the type matches 'message_action'
70+
# Your listener will only be called when the callback_id matches 'open_modal' AND the type matches 'message_action'
7371
@app.shortcut({"callback_id": "open_modal", "type": "message_action"})
7472
def open_modal(ack, shortcut, client):
7573
# Acknowledge the shortcut request

docs/_basic/responding_actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The second way to respond to actions is using `respond()`, which is a utility to
1414
</div>
1515

1616
```python
17-
# Your middleware will be called every time an interactive component with the action_id “approve_button” is triggered
17+
# Your listener will be called every time an interactive component with the action_id “approve_button” is triggered
1818
@app.action("approve_button")
1919
def approve_request(ack, say):
2020
# Acknowledge action request

0 commit comments

Comments
 (0)