Skip to content

Commit 4568ed6

Browse files
authored
replace instances of event with request (#902)
1 parent ff3d359 commit 4568ed6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/guides/interactive-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Let's say, a message has a simple `"actions"`-typed block that has a button.
5656
}
5757
```
5858

59-
When a user clicks the button, `"block_actions"`-typed event with the `action_id` the element with the value `"button-action"` has will come to your Bolt app.
59+
When a user clicks the button, `"block_actions"`-typed request with the `action_id` the element with the value `"button-action"` has will come to your Bolt app.
6060

6161
```java
6262
// when a user clicks a button in the actions block

docs/guides/ja/interactive-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Bolt は Slack アプリに必要な共通処理の多くを巻き取ります
5656
}
5757
```
5858

59-
ユーザがそのボタンをクリックすると `"block_actions"` タイプのイベントが `"button-action"` という `action_id` とともに Bolt アプリに送信されます。
59+
ユーザがそのボタンをクリックすると `"block_actions"` タイプのリクエストが `"button-action"` という `action_id` とともに Bolt アプリに送信されます。
6060

6161
```java
6262
// ユーザが actions ブロック内のボタンをクリックしたとき
@@ -98,7 +98,7 @@ app.blockAction("button-action") { req, ctx ->
9898
}
9999
```
100100

101-
このようなタイプのセレクトメニューでは、Bolt アプリは `"topics-action"` という `action_id``block_suggestion``block_actions` タイプのイベントのハンドリングをすることが必要です
101+
このようなタイプのセレクトメニューでは、Bolt アプリは `"topics-action"` という `action_id``block_suggestion``block_actions` タイプのリクエストのハンドリングをすることが必要です
102102

103103
```java
104104
import com.slack.api.app_backend.interactive_components.response.Option;

docs/guides/ja/modals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ lang: ja
4343

4444
#### `"view_closed"` リクエスト (`notify_on_close``true` のときのみ)
4545

46-
ユーザーがモーダルの Cancel ボタンや x ボタンを押したとき、[`"view_closed"` という type のペイロード](https://api.slack.com/reference/interaction-payloads/views#view_closed) を受信する場合があります。これらのボタンは blocks ではなく、標準で配置されているものです。このイベントを受信するためには [views.open](https://api.slack.com/methods/views.open)[views.push](https://api.slack.com/methods/views.push) の API メソッドでモーダルを生成したときに `notify_on_close``true` に設定しておく必要があります。このリクエストを処理するためにやらなければならないことは以下の通りです。
46+
ユーザーがモーダルの Cancel ボタンや x ボタンを押したとき、[`"view_closed"` という type のペイロード](https://api.slack.com/reference/interaction-payloads/views#view_closed) を受信する場合があります。これらのボタンは blocks ではなく、標準で配置されているものです。このリクエストを受信するためには [views.open](https://api.slack.com/methods/views.open)[views.push](https://api.slack.com/methods/views.push) の API メソッドでモーダルを生成したときに `notify_on_close``true` に設定しておく必要があります。このリクエストを処理するためにやらなければならないことは以下の通りです。
4747

4848
1. Slack API からのリクエストを[検証](https://api.slack.com/docs/verifying-requests-from-slack)
4949
1. リクエストボディをパースして `type``"view_closed"` かつ `callback_id` が処理対象かを確認

docs/guides/ja/steps-from-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ app.step(step);
104104
---
105105
## ステップの設定の保存
106106

107-
ワークフローステップの設定モーダルが開いたら、アプリはワークフロー作成者がモーダルを送信するイベントである `view_submission` イベントを待ち受けます。このイベントを受信すると `WorkflowStep` 設定オブジェクト内の `save` コールバック関数が実行されます。
107+
ワークフローステップの設定モーダルが開いたら、アプリはワークフロー作成者がモーダルを送信するリクエストである `view_submission` リクエストを待ち受けます。このリクエストを受信すると `WorkflowStep` 設定オブジェクト内の `save` コールバック関数が実行されます。
108108

109109
`save` コールバック関数の中では、以下の引数を渡してステップの設定を保存するための `update()` 関数を利用できます。
110110

docs/guides/steps-from-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ app.step(step);
102102
---
103103
## Saving step configurations
104104

105-
After the configuration modal is opened, your app will listen for the `view_submission` event. The `save` callback in your `WorkflowStep` configuration will be run when this event is received.
105+
After the configuration modal is opened, your app will listen for the `view_submission` request. The `save` callback in your `WorkflowStep` configuration will be run when this request is received.
106106

107107
Within the `save` callback, the `update()` method can be used to save the builder's step configuration by passing in the following arguments:
108108

0 commit comments

Comments
 (0)