Skip to content

Commit 92c3380

Browse files
seratchsrajiang
andauthored
Update the respond utility guide (#538)
Co-authored-by: Sarah Jiang <[email protected]>
1 parent 1f044cb commit 92c3380

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Gemfile.lock
55
.vscode/
66
.bundle/
77
vendor/
8+
.ruby-version

docs/_basic/ja_responding_actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def approve_request(ack, say):
3131

3232
<div class="secondary-content" markdown="0">
3333

34-
`respond()``response_url` を使って送信するときに便利なメソッドで、これらと同じような動作をします。投稿するメッセージのペイロードには JSON オブジェクトを渡すことができ、メッセージはやり取りの発生元に反映されます。オプションのプロパティとして `response_type`(値は `in_channel` または `ephemeral`)、`replace_original``delete_original` などを指定できます。
34+
`respond()``response_url` を使って送信するときに便利なメソッドで、これらと同じような動作をします。投稿するメッセージのペイロードには、全ての[メッセージペイロードのプロパティ](https://api.slack.com/reference/messaging/payload)とオプションのプロパティとして `response_type`(値は `"in_channel"` または `"ephemeral"`)、`replace_original``delete_original``unfurl_links``unfurl_media` などを指定できます。こうすることによってアプリから送信されるメッセージは、やり取りの発生元に反映されます
3535

3636
</div>
3737

docs/_basic/responding_actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def approve_request(ack, say):
3232

3333
<div class="secondary-content" markdown="0">
3434

35-
Since `respond()` is a utility for calling the `response_url`, it behaves in the same way. You can pass a JSON object with a new message payload that will be published back to the source of the original interaction with optional properties like `response_type` (which has a value of `in_channel` or `ephemeral`), `replace_original`, and `delete_original`.
35+
Since `respond()` is a utility for calling the `response_url`, it behaves in the same way. You can pass [all the message payload properties](https://api.slack.com/reference/messaging/payload) as keyword arguments along with optional properties like `response_type` (which has a value of `"in_channel"` or `"ephemeral"`), `replace_original`, `delete_original`, `unfurl_links`, and `unfurl_media`. With that, your app can send a new message payload that will be published back to the source of the original interaction.
3636

3737
</div>
3838

0 commit comments

Comments
 (0)