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/guides/audit-logs-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Refer to the [Javadoc](https://oss.sonatype.org/service/local/repositories/relea
78
78
79
79
The Audit Logs API methods conform to Slack's [rate limits](https://docs.slack.dev/apis/web-api/rate-limits) and all methods are rated Tier 3. This allows for up to 50 calls per minute, with an allowance for sporadic bursts. Refer to [the API documentation](https://docs.slack.dev/admins/audit-logs-api) for more details.
80
80
81
-
The async client, `AsyncAuditClient`, has great consideration for rate limits. The async client internally has its queue systems to avoid burst traffics as much as possible while `AuditClient`, the synchronous client, always blindly sends requests. Both sync and async clients maintain the metrics data in a `MetricsDatastore` together. This allows the async client to accurately know the current traffic they generated toward the Slack platform and estimate the remaining amount to call.
81
+
The async client, `AsyncAuditClient`, takes rate limits into consideration. The async client internally has its queue systems to avoid burst traffics as much as possible while `AuditClient`, the synchronous client, always blindly sends requests. Both sync and async clients maintain the metrics data in a `MetricsDatastore` together. This allows the async client to accurately know the current traffic they generated toward the Slack platform and estimate the remaining amount to call.
82
82
83
83
The default implementation of the datastore is an in-memory one using the JVM heap memory. The default `SlackConfig` enables the in-memory one.
Use `ctx.client()` to call Slack Web API methods in Bolt apps. The `MethodsClient` created by the method already holds a valid bot token, so there is no need to provide a token to it. Simply call the method with parameters as below.
157
+
Use `ctx.client()` to call Slack Web API methods in Bolt apps. The `MethodsClient` created by the method already holds a valid bot token, so there is no need to provide a token to it. Call the method with parameters as below.
Copy file name to clipboardExpand all lines: docs/content/guides/composing-messages.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ ChatPostMessageResponse response = slack.methods(token).chatPostMessage(req -> r
29
29
);
30
30
```
31
31
32
-
As you see, using `text`is fairly simple: give a string value with a valid format. Consult [Basic formatting with `mrkdwn`](https://docs.slack.dev/messaging/formatting-message-text) for understanding the markup language.
32
+
Use `text`by providing a string value with a valid format. Consult [Basic formatting with `mrkdwn`](https://docs.slack.dev/messaging/formatting-message-text) for understanding the markup language.
33
33
34
34
---
35
35
## Building blocks for rich message layouts
@@ -67,7 +67,7 @@ ChatPostMessageResponse response = slack.methods(token).chatPostMessage(req -> r
67
67
);
68
68
```
69
69
70
-
You build a message for incoming webhooks and `response_url` calls this way too.
70
+
You can build a message for incoming webhooks and `response_url` calls this way too.
Copy file name to clipboardExpand all lines: docs/content/guides/getting-started-with-bolt.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,7 +231,7 @@ run {
231
231
<TabsgroupId="socket-or-http">
232
232
<TabItemvalue="socket-mode"label="Socket Mode">
233
233
234
-
Only single source code is required to run your first Bolt app. All you need to do is define the main method that starts `SocketModeApp`.
234
+
Only single source code is required to run your first Bolt app. You'll need to define the main method that starts `SocketModeApp`.
235
235
236
236
```java
237
237
packagehello;
@@ -254,7 +254,7 @@ public class MyApp {
254
254
}
255
255
```
256
256
257
-
If you go with JDK 10+, thanks to [Local Variable Type Inference](https://docs.oracle.com/en/java/javase/21/language/local-variable-type-inference.html), your code could be much more concise. To take advantage of it, install OpenJDK 11 and set the compatible Java versions in `build.gradle` as below. Also, configure the same on your IDE.
257
+
If you go with JDK 10+, thanks to [Local Variable Type Inference](https://docs.oracle.com/en/java/javase/21/language/local-variable-type-inference.html), you can write more concise code. To do so, install OpenJDK 11 and set the compatible Java versions in `build.gradle` as below, configuring the same on your IDE.
258
258
259
259
```groovy
260
260
java {
@@ -276,7 +276,7 @@ new SocketModeApp(app).start();
276
276
</TabItem>
277
277
<TabItemvalue="http"label="HTTP">
278
278
279
-
Only single source code is required to run your first Bolt app. All you need to do is define the main method that starts `SlackAppServer`. Your server with the default configuration will listen to the 3000 port but it's configurable. Check other constructors of the class to customize the behavior.
279
+
Only single source code is required to run your first Bolt app. You'll need to define the main method that starts `SlackAppServer`. Your server with the default configuration will listen to the 3000 port but it's configurable. Check other constructors of the class to customize the behavior.
280
280
281
281
```java
282
282
packagehello;
@@ -300,7 +300,7 @@ public class MyApp {
300
300
}
301
301
```
302
302
303
-
If you go with JDK 10+, thanks to [Local Variable Type Inference](https://docs.oracle.com/en/java/javase/21/language/local-variable-type-inference.html), your code could be much more concise. To take advantage of it, install OpenJDK 11 and set the compatible Java versions in `build.gradle` as below. Also, configure the same on your IDE.
303
+
If you go with JDK 10+, thanks to [Local Variable Type Inference](https://docs.oracle.com/en/java/javase/21/language/local-variable-type-inference.html), you can write more concise code. To do so, install OpenJDK 11 and set the compatible Java versions in `build.gradle` as below, configuring the same on your IDE.
304
304
305
305
```groovy
306
306
java {
@@ -423,7 +423,7 @@ Now you can hit the `/hello` command in your development workspace. If your app
423
423
424
424
As [Spring Boot](https://spring.io/projects/spring-boot) is one of the most popular web frameworks in the Java world, you may be curious about the possibility to let this Bolt app live together with it.
425
425
426
-
Rest assured, we can _inject_ Bolt into Spring Boot apps.
426
+
Don't worry, we can _inject_ Bolt into Spring Boot apps.
427
427
428
428
Add `implementation("com.slack.api:bolt:sdkLatestVersion")` to `dependencies` in `build.gradle` and write a few lines of code.
Copy file name to clipboardExpand all lines: docs/content/guides/incoming-webhooks.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ lang: en
4
4
5
5
# Incoming webhooks
6
6
7
-
[Incoming webhooks](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks) are a simple way to post messages from apps into Slack. Creating an incoming webhook gives you a unique URL to which you send a JSON payload with the message and some options.
7
+
[Incoming webhooks](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks) are a straightforward way to post messages from apps into Slack. Creating an incoming webhook gives you a unique URL to which you send a JSON payload with the message and some options.
0 commit comments