Skip to content
This repository was archived by the owner on Jul 26, 2019. It is now read-only.

Commit e830b70

Browse files
committed
Updated minimal delay to 2 to match ratelimit (1/120s)
1 parent 6f1a95d commit e830b70

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ BotBlockAPI api = new BotBlockAPI.Builder()
7373
There are a lot of other methods that you can use. Head over to the [Wiki] for more information.
7474

7575
### Posting
76-
You can post the guilds eithe automatically or manually depending on your own preferences.
76+
You can post the guilds either automatically or manually depending on your own preferences.
7777

7878
#### Auto-posting
79-
JavaBotBlockAPI comes with an inbuild scheduler to post yout guilds automatically.
79+
JavaBotBlockAPI comes with an inbuilt scheduler to post your guilds automatically.
8080
To use it simply use the `startAutoPosting` method and provide either a JDA instance, ShardManager instance or the bot id and guild count.
8181

8282
**Example**:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins{
77
}
88

99
group = 'com.andre601'
10-
version = '1.0.4'
10+
version = '1.0.5'
1111

1212
sourceCompatibility = 1.8
1313

release-notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.0.5
2+
- Updated minimal delay to 2 since ratelimit is 1/120s.
3+
14
## v1.0.4
25
- RequestHandler now no longer allows values in itself. Instead you provide them through the postGuilds or startAutoPosting methods.
36

src/main/java/com/andre601/javabotblockapi/BotBlockAPI.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ public Builder setAuthTokens(@NotNull Map<String, String> authTokens){
111111
* <br>You don't need to set this when not using the auto-post option. Default is 30.
112112
*
113113
* @param updateInterval
114-
* The update interval in minutes that should be used. This can't be less than 1.
114+
* The update interval in minutes that should be used. This can't be less than 2.
115115
*
116116
* @throws IllegalArgumentException
117-
* When the updateInterval is less than 1.
117+
* When the updateInterval is less than 2.
118118
*
119119
* @return The Builder after the updateInterval was set. Useful for chaining.
120120
*/
121121
public Builder setUpdateInteval(int updateInterval){
122-
if(updateInterval < 1)
123-
throw new IllegalArgumentException("updateInterval can't be less than 1!");
122+
if(updateInterval < 2)
123+
throw new IllegalArgumentException("updateInterval can't be less than 2!");
124124

125125
this.updateInterval = updateInterval;
126126

0 commit comments

Comments
 (0)