Skip to content

Commit ac8b698

Browse files
authored
Update slash command listener examples in documents to use respond over say (#438)
1 parent c2f227b commit ac8b698

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/_basic/ja_listening_responding_commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ order: 9
2222
```python
2323
# echoコマンドは受け取ったコマンドをそのまま返す
2424
@app.command("/echo")
25-
def repeat_text(ack, say, command):
25+
def repeat_text(ack, respond, command):
2626
# command リクエストを確認
2727
ack()
28-
say(f"{command['text']}")
28+
respond(f"{command['text']}")
2929
```
3030
</div>

docs/_basic/listening_responding_commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ When setting up commands within your app configuration, you'll append `/slack/ev
2222
```python
2323
# The echo command simply echoes on command
2424
@app.command("/echo")
25-
def repeat_text(ack, say, command):
25+
def repeat_text(ack, respond, command):
2626
# Acknowledge command request
2727
ack()
28-
say(f"{command['text']}")
28+
respond(f"{command['text']}")
2929
```
3030
</div>

0 commit comments

Comments
 (0)