Skip to content

Commit f5e3922

Browse files
ope
1 parent a4fb6ec commit f5e3922

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

docs/content/getting-started.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ Your app is now ready for some logic. Let's start by using the `message()` metho
193193

194194
The following example listens and responds to all messages in channels/DMs where your app has been added that contain the word "hello":
195195

196-
<Tabs groupId="socket-or-http2">
197-
<TabItem value="socket-mode2" label="Socket Mode">
196+
<Tabs groupId="socket-or-http">
197+
<TabItem value="socket-mode" label="Socket Mode">
198198

199199
```python
200200
import os
@@ -218,7 +218,7 @@ if __name__ == "__main__":
218218
```
219219

220220
</TabItem>
221-
<TabItem value="http2" label="HTTP">
221+
<TabItem value="http" label="HTTP">
222222

223223
```python
224224
import os
@@ -256,13 +256,13 @@ This is a basic example, but it gives you a place to start customizing your app
256256

257257
To use features like buttons, select menus, datepickers, modals, and shortcuts, you’ll need to enable interactivity. Head over to **Interactivity & Shortcuts** in your app configuration.
258258

259-
<Tabs groupId="socket-or-http3">
260-
<TabItem value="socket-mode3" label="Socket Mode">
259+
<Tabs groupId="socket-or-http">
260+
<TabItem value="socket-mode" label="Socket Mode">
261261

262262
With Socket Mode on, basic interactivity is enabled by default, so no further action is needed.
263263

264264
</TabItem>
265-
<TabItem value="http3" label="HTTP">
265+
<TabItem value="http" label="HTTP">
266266

267267
Similar to events, you'll need to specify a URL for Slack to send the action (such as *user clicked a button*). Back on your app configuration page, click on **Interactivity & Shortcuts** on the left side. You'll see that there's another **Request URL** box.
268268

@@ -283,8 +283,8 @@ Now, let's go back to your app's code and add logic to handle those events:
283283

284284
Below, the code from the last section is modified to send a message containing a button rather than just a string:
285285

286-
<Tabs groupId="socket-or-http4">
287-
<TabItem value="socket-mode4" label="Socket Mode">
286+
<Tabs groupId="socket-or-http">
287+
<TabItem value="socket-mode" label="Socket Mode">
288288

289289
```python
290290
import os
@@ -323,7 +323,7 @@ if __name__ == "__main__":
323323
```
324324

325325
</TabItem>
326-
<TabItem value="http4" label="HTTP">
326+
<TabItem value="http" label="HTTP">
327327

328328
```python
329329
import os
@@ -376,8 +376,8 @@ Now, if you restart your app and say "hello" in a channel your app is in, you'll
376376

377377
Let's add a handler to send a followup message when someone clicks the button:
378378

379-
<Tabs groupId="socket-or-http5">
380-
<TabItem value="socket-mode5" label="Socket Mode">
379+
<Tabs groupId="socket-or-http">
380+
<TabItem value="socket-mode" label="Socket Mode">
381381

382382
```python
383383
import os
@@ -418,7 +418,7 @@ if __name__ == "__main__":
418418
```
419419

420420
</TabItem>
421-
<TabItem value="http5" label="HTTP">
421+
<TabItem value="http" label="HTTP">
422422

423423
```python
424424
import os

docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/getting-started.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ import TabItem from '@theme/TabItem';
190190

191191
次の例では、アプリが参加するチャンネルとダイレクトメッセージに投稿されるすべてのメッセージをリッスンし、「こんにちは」というメッセージに応答を返します。
192192

193-
<Tabs groupId="socket-or-http2">
194-
<TabItem value="socket-mode2" label="Socket Mode">
193+
<Tabs groupId="socket-or-http">
194+
<TabItem value="socket-mode" label="Socket Mode">
195195

196196
```python
197197
import os
@@ -215,7 +215,7 @@ if __name__ == "__main__":
215215
```
216216

217217
</TabItem>
218-
<TabItem value="http2" label="HTTP">
218+
<TabItem value="http" label="HTTP">
219219

220220
```python
221221
import os
@@ -253,13 +253,13 @@ if __name__ == "__main__":
253253

254254
インタラクティブ機能を有効にすると、ボタン、選択メニュー、日付ピッカー、モーダル、ショートカットなどの機能が利用できるようになります。アプリ設定ページの「**Interactivity & Shortcuts**」にアクセスしてください。
255255

256-
<Tabs groupId="socket-or-http3">
257-
<TabItem value="socket-mode3" label="Socket Mode">
256+
<Tabs groupId="socket-or-http">
257+
<TabItem value="socket-mode" label="Socket Mode">
258258

259259
ソケット モードをオンにすると、基本的な対話機能がデフォルトで有効になるため、それ以上の操作は必要ありません。
260260

261261
</TabItem>
262-
<TabItem value="http3" label="HTTP">
262+
<TabItem value="http" label="HTTP">
263263

264264
イベントと同様に、Slack がアクション (*ユーザーがボタンをクリックした* など) を送信するには、URL を指定する必要があります。アプリ構成ページに戻り、左側にある **対話性とショートカット** をクリックします。別の **リクエスト URL** ボックスがあることがわかります。
265265

@@ -280,8 +280,8 @@ if __name__ == "__main__":
280280

281281
以下のコードの後の部分を編集し、文字列だけのメッセージの代わりに、ボタンを含んだメッセージを送信するようにしてみます。
282282

283-
<Tabs groupId="socket-or-http4">
284-
<TabItem value="socket-mode4" label="Socket Mode">
283+
<Tabs groupId="socket-or-http">
284+
<TabItem value="socket-mode" label="Socket Mode">
285285

286286
```python
287287
import os
@@ -316,7 +316,7 @@ if __name__ == "__main__":
316316
```
317317

318318
</TabItem>
319-
<TabItem value="http4" label="HTTP">
319+
<TabItem value="http" label="HTTP">
320320

321321
```python
322322
import os
@@ -369,8 +369,8 @@ if __name__ == "__main__":
369369

370370
ハンドラーを追加して、ボタンがクリックされたときにフォローアップメッセージを送信するようにしてみましょう。
371371

372-
<Tabs groupId="socket-or-http5">
373-
<TabItem value="socket-mode5" label="Socket Mode">
372+
<Tabs groupId="socket-or-http">
373+
<TabItem value="socket-mode" label="Socket Mode">
374374

375375
```python
376376
import os
@@ -412,7 +412,7 @@ if __name__ == "__main__":
412412
```
413413

414414
</TabItem>
415-
<TabItem value="http5" label="HTTP">
415+
<TabItem value="http" label="HTTP">
416416

417417
```python
418418
import os

0 commit comments

Comments
 (0)