You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/getting-started.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,8 +193,8 @@ Your app is now ready for some logic. Let's start by using the `message()` metho
193
193
194
194
The following example listens and responds to all messages in channels/DMs where your app has been added that contain the word "hello":
195
195
196
-
<TabsgroupId="socket-or-http2">
197
-
<TabItemvalue="socket-mode2"label="Socket Mode">
196
+
<TabsgroupId="socket-or-http">
197
+
<TabItemvalue="socket-mode"label="Socket Mode">
198
198
199
199
```python
200
200
import os
@@ -218,7 +218,7 @@ if __name__ == "__main__":
218
218
```
219
219
220
220
</TabItem>
221
-
<TabItemvalue="http2"label="HTTP">
221
+
<TabItemvalue="http"label="HTTP">
222
222
223
223
```python
224
224
import os
@@ -256,13 +256,13 @@ This is a basic example, but it gives you a place to start customizing your app
256
256
257
257
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.
258
258
259
-
<TabsgroupId="socket-or-http3">
260
-
<TabItemvalue="socket-mode3"label="Socket Mode">
259
+
<TabsgroupId="socket-or-http">
260
+
<TabItemvalue="socket-mode"label="Socket Mode">
261
261
262
262
With Socket Mode on, basic interactivity is enabled by default, so no further action is needed.
263
263
264
264
</TabItem>
265
-
<TabItemvalue="http3"label="HTTP">
265
+
<TabItemvalue="http"label="HTTP">
266
266
267
267
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.
268
268
@@ -283,8 +283,8 @@ Now, let's go back to your app's code and add logic to handle those events:
283
283
284
284
Below, the code from the last section is modified to send a message containing a button rather than just a string:
285
285
286
-
<TabsgroupId="socket-or-http4">
287
-
<TabItemvalue="socket-mode4"label="Socket Mode">
286
+
<TabsgroupId="socket-or-http">
287
+
<TabItemvalue="socket-mode"label="Socket Mode">
288
288
289
289
```python
290
290
import os
@@ -323,7 +323,7 @@ if __name__ == "__main__":
323
323
```
324
324
325
325
</TabItem>
326
-
<TabItemvalue="http4"label="HTTP">
326
+
<TabItemvalue="http"label="HTTP">
327
327
328
328
```python
329
329
import os
@@ -376,8 +376,8 @@ Now, if you restart your app and say "hello" in a channel your app is in, you'll
376
376
377
377
Let's add a handler to send a followup message when someone clicks the button:
0 commit comments