Skip to content

Commit 708b992

Browse files
committed
Version 6.4.1
- Site updated: - Added BOTS_DISTOP_XYZ - Exclude CheckUtil from Javadoc - Updated Javadoc comments - Update main docs page - Use GH-Pages action and gh-pages branch
1 parent 091f88d commit 708b992

File tree

228 files changed

+370
-170725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+370
-170725
lines changed

.github/workflows/release_actions.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ jobs:
2121
- name: Generate Javadoc
2222
run: ./gradlew javadoc
2323
- name: Push changes
24-
run: |
25-
git config --global user.name "github-actions[bot]"
26-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
27-
28-
git add docs
29-
git commit -m "Update Javadoc (${GITHUB_SHA:0:7})"
30-
git push
24+
uses: peaceiris/action-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./docs
3128
publish:
3229
needs: [generateJavadoc]
3330
if: success()

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins{
88
id 'com.github.johnrengelman.shadow' version '5.2.0'
99
}
1010

11-
def ver = new Version(major: 6, minor: 4, patch: 0)
11+
def ver = new Version(major: 6, minor: 4, patch: 1)
1212

1313
allprojects {
1414
apply plugin: 'com.jfrog.bintray'

core/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
/*
22
* This module surprisingly enough doesn't have any dependencies whe have to implement, so this build.gradle is empty...
33
*/
4+
5+
javadoc{
6+
exclude "org/botblock/javabotblockAPI/core/CheckUtil.java"
7+
}

core/src/main/java/org/botblock/javabotblockapi/core/BotBlockAPI.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ public Builder(){}
6969
* <br>Entries with the same key will be overwritten.
7070
*
7171
* @param site
72-
* The {@link Site Site} to get the name from.
72+
* The {@link org.botblock.javabotblockapi.core.Site Site} to get the name from.
7373
* @param token
7474
* The API token from the corresponding bot list. May not be null or empty.
7575
* <br>You may receive the API token from the bot list.
7676
*
77-
* <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
77+
* <p>Following Exceptions can be thrown from the CheckUtil:
7878
* <ul>
7979
* <li>{@link java.lang.NullPointerException NullPointerException} - When the provided Token is empty.</li>
8080
* <li>{@link java.lang.IllegalStateException IllegalStateException} - When the provided Site doesn't support POST requests.</li>
@@ -103,7 +103,7 @@ public Builder addAuthToken(@Nonnull Site site, @Nonnull String token){
103103
* The API token from the corresponding bot list. May not be null or empty.
104104
* <br>You may receive the API token from the bot list.
105105
*
106-
* <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
106+
* <p>Following Exceptions can be thrown from the CheckUtil:
107107
* <ul>
108108
* <li>{@link java.lang.NullPointerException NullPointerException} - When the provided Site or Token is empty.</li>
109109
* </ul>
@@ -125,7 +125,7 @@ public Builder addAuthToken(@Nonnull String site, @Nonnull String token){
125125
* @param tokens
126126
* The Map that should be used. May not be null.
127127
*
128-
* <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
128+
* <p>Following Exceptions can be thrown from the CheckUtil:
129129
* <ul>
130130
* <li>{@link java.lang.NullPointerException NullPointerException} - When the provided Token is empty.</li>
131131
* </ul>
@@ -146,7 +146,7 @@ public Builder setAuthTokens(@Nonnull Map<String, String> tokens){
146146
* @param updateDelay
147147
* The update interval in minutes that should be used. This can't be less than 2.
148148
*
149-
* <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
149+
* <p>Following Exceptions can be thrown from the CheckUtil:
150150
* <ul>
151151
* <li>{@link java.lang.IllegalStateException IllegalStateException} - When the provided interval is less than 2.</li>
152152
* </ul>
@@ -163,7 +163,7 @@ public Builder setUpdateDelay(@Nonnull Integer updateDelay){
163163
/**
164164
* Builds the instance of {@link org.botblock.javabotblockapi.core.BotBlockAPI BotBlockAPI}.
165165
*
166-
* <p>Following Exceptions can be thrown from the {@link org.botblock.javabotblockapi.core.CheckUtil CheckUtil}:
166+
* <p>Following Exceptions can be thrown from the CheckUtil:
167167
* <ul>
168168
* <li>{@link java.lang.NullPointerException NullPointerException} - When the Tokens Map is empty.</li>
169169
* </ul>

core/src/main/java/org/botblock/javabotblockapi/core/CheckUtil.java

-27
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,18 @@
2020

2121
import java.util.Map;
2222

23-
/**
24-
* Utility class to perform basic checks.
25-
*/
2623
public class CheckUtil{
2724

28-
/**
29-
* Will throw a {@link java.lang.NullPointerException NullPointerException} when the provided String is empty.
30-
*
31-
* @param value
32-
* The String to check.
33-
* @param name
34-
* The name of the parameter checked.
35-
*/
3625
public static void notEmpty(String value, String name){
3726
if(value.isEmpty())
3827
throw new NullPointerException(name + " may not be empty.");
3928
}
4029

41-
/**
42-
* Will throw a {@link java.lang.NullPointerException NullPointerException} when the provided Map is empty.
43-
*
44-
* @param value
45-
* The Map to check.
46-
* @param name
47-
* The name of the parameter checked.
48-
*/
4930
public static void notEmpty(Map<?, ?> value, String name){
5031
if(value.isEmpty())
5132
throw new NullPointerException(name + " may not be empty.");
5233
}
5334

54-
/**
55-
* Will throw a {@link java.lang.IllegalStateException IllegalStateException} when the provided expression returns true.
56-
*
57-
* @param expression
58-
* The expression to check against.
59-
* @param message
60-
* The message to print in the Exception when thrown.
61-
*/
6235
public static void condition(boolean expression, String message){
6336
if(expression)
6437
throw new IllegalStateException(message);

core/src/main/java/org/botblock/javabotblockapi/core/JavaBotBlockAPIInfo.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* Class containing static info used in other modules.
2323
* <br>Feel free to use the info shared here inside your bot if you, for example, want to share what Lib your bot
2424
* uses to post Guild count or similar.
25+
*
26+
* @since 6.4.0
2527
*/
2628
public class JavaBotBlockAPIInfo{
2729

@@ -36,7 +38,7 @@ public class JavaBotBlockAPIInfo{
3638
/**
3739
* Patch version of the Wrapper.
3840
*/
39-
public static final String PATCH = "0";
41+
public static final String PATCH = "1";
4042

4143
/**
4244
* Full version in the format {@code major.minor.patch}.

0 commit comments

Comments
 (0)