diff --git a/build.gradle b/build.gradle
index 228583f2..d8695e26 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ plugins{
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
-def ver = new Version(major: 6, minor: 6, patch: 5)
+def ver = new Version(major: 6, minor: 6, patch: 6)
allprojects {
apply plugin: 'maven-publish'
diff --git a/core/src/main/java/org/botblock/javabotblockapi/core/Info.java b/core/src/main/java/org/botblock/javabotblockapi/core/Info.java
index 242ddead..d9a1bde4 100644
--- a/core/src/main/java/org/botblock/javabotblockapi/core/Info.java
+++ b/core/src/main/java/org/botblock/javabotblockapi/core/Info.java
@@ -39,7 +39,7 @@ public class Info{
/**
* Patch version of the Wrapper.
*/
- public static final int PATCH = 5;
+ public static final int PATCH = 6;
/**
* Full version in the format {@code major.minor.patch}.
diff --git a/core/src/main/java/org/botblock/javabotblockapi/core/Site.java b/core/src/main/java/org/botblock/javabotblockapi/core/Site.java
index 2ddffc77..ebd7002c 100644
--- a/core/src/main/java/org/botblock/javabotblockapi/core/Site.java
+++ b/core/src/main/java/org/botblock/javabotblockapi/core/Site.java
@@ -55,8 +55,13 @@ public class Site{
*
+ *
+ * @deprecated Website not responding.
*/
- public static final Site ARCANE_CENTER_XYZ = new Site("arcane-center.xyz", HttpMethod.POST);
+ @Deprecated
+ @DeprecatedSince(major = 6, minor = 6, patch = 6)
+ @PlannedRemoval(major = 6, minor = 6, patch = 8)
+ public static final Site ARCANE_CENTER_XYZ = new Site("arcane-center.xyz");
/**
* bladebotlist.xyz
@@ -82,6 +87,17 @@ public class Site{
*/
public static final Site BLIST_XYZ = new Site("blist.xyz", HttpMethod.GET, HttpMethod.POST);
+ /**
+ * boatspace.xyz
+ *
+ * Supported methods:
+ *
+ */
+ public static final Site BOATSPACE_XYZ = new Site("boatspace.xyz", HttpMethod.GET, HttpMethod.POST);
+
/**
* botsdatabase.com
*
@@ -90,8 +106,13 @@ public class Site{
* GET
* POST
*
+ *
+ * @deprecated Website not responding.
*/
- public static final Site BOTSDATABASE_COM = new Site("botsdatabase.com", HttpMethod.GET, HttpMethod.POST);
+ @Deprecated
+ @DeprecatedSince(major = 6, minor = 6, patch = 6)
+ @PlannedRemoval(major = 6, minor = 6, patch = 8)
+ public static final Site BOTSDATABASE_COM = new Site("botsdatabase.com");
/**
* bots.discordlabs.org
@@ -146,23 +167,6 @@ public class Site{
*/
public static final Site DISCORD_BOATS = new Site("discord.boats", HttpMethod.GET, HttpMethod.POST);
- /**
- * discordbotdirectory.net
- *
- * Supported methods:
- *
- *
- * @deprecated Site no longer exists.
- *
- * @since 6.3.0
- */
- @Deprecated
- @DeprecatedSince(major = 6, minor = 6, patch = 4)
- @PlannedRemoval(major = 6, minor = 6, patch = 6)
- public static final Site DISCORDBOTDIRECTORY_NET = new Site("discordbotdirectory.net");
-
/**
* discordbotlist.com
*
@@ -231,6 +235,16 @@ public class Site{
*/
public static final Site DISCORDLIST_SPACE = new Site("discordlist.space", HttpMethod.GET, HttpMethod.POST);
+ /**
+ * discordservices.net
+ *
+ * Supported methods:
+ *
+ */
+ public static final Site DISCORDSERVICES_NET = new Site("discordservices.net", HttpMethod.POST);
+
/**
* disforge.com
*
diff --git a/request/src/main/java/org/botblock/javabotblockapi/requests/GetBotAction.java b/request/src/main/java/org/botblock/javabotblockapi/requests/GetBotAction.java
index e455da44..fc5d57b6 100644
--- a/request/src/main/java/org/botblock/javabotblockapi/requests/GetBotAction.java
+++ b/request/src/main/java/org/botblock/javabotblockapi/requests/GetBotAction.java
@@ -124,36 +124,8 @@ public GetBotAction(boolean disableCache, @Nonnull String userAgent, @Nonnull St
/**
* Gets the full information of a bot.
*
- * The JSONObject may look like this:
- *
- * {
- * "id": "123456789012345678",
- * "username": "MyBot",
- * "discriminator": "1234",
- * "owners": [
- * "234567890123456789"
- * ],
- * "server_count": 100,
- * "invite":{@literal "https://discordapp.com/oauth2/authorize?client_id=123456789012345678&scope=bot"},
- * "prefix": "?",
- * "website": "",
- * "github": "",
- * "support": "",
- * "library": "JDA",
- * "list_data": {
- * "somebotlist.com": [
- * {"data": "Unique bot list data"},
- * 200
- * ],
- * "otherlist.org": [
- * {"data": "Unique bot list data"},
- * 404
- * ]
- * }
- * }
- *
- *
With exception of id and list_data are all returned values based on how often one appears.
- *
Each entry in list data is unique to what the respective bot list returns.
+ * An example of how the returned JSON may look like can be found here:
+ * https://gist.github.com/Andre601/b18b1c4e88e9a405806ce7b6c29a0136
*
* Following Exceptions can be thrown from the HTTP request:
*
- * {
- * "id": "123456789012345678",
- * "username": "MyBot",
- * "discriminator": "1234",
- * "owners": [
- * "234567890123456789"
- * ],
- * "server_count": 100,
- * "invite":{@literal "https://discordapp.com/oauth2/authorize?client_id=123456789012345678&scope=bot"},
- * "prefix": "?",
- * "website": "",
- * "github": "",
- * "support": "",
- * "library": "JDA",
- * "list_data": {
- * "somebotlist.com": [
- * {"data": "Unique bot list data"},
- * 200
- * ],
- * "otherlist.org": [
- * {"data": "Unique bot list data"},
- * 404
- * ]
- * }
- * }
- *
- *
With exception of id and list_data are all returned values based on how often one appears.
- *
Each entry in list data is unique to what the respective bot list returns.
+ * An example of how the returned JSON may look like can be found here:
+ * https://gist.github.com/Andre601/b18b1c4e88e9a405806ce7b6c29a0136
*
* Following Exceptions can be thrown from the CheckUtil:
*
@@ -248,7 +192,7 @@ public JSONObject getBotInfo(@Nonnull String id){
* @return Possibly-null {@link org.json.JSONObject JSONObject} containing information from the different bot list.
*/
@Nullable
- public JSONObject getBotListInfo(@Nonnull Long id){
+ public JSONObject getBotListInfo(long id){
return getBotListInfo(String.valueOf(id));
}
diff --git a/request/src/main/java/org/botblock/javabotblockapi/requests/handler/RequestHandler.java b/request/src/main/java/org/botblock/javabotblockapi/requests/handler/RequestHandler.java
index 0d72dc2b..4a28cfe0 100644
--- a/request/src/main/java/org/botblock/javabotblockapi/requests/handler/RequestHandler.java
+++ b/request/src/main/java/org/botblock/javabotblockapi/requests/handler/RequestHandler.java
@@ -141,7 +141,7 @@ public void performPOST(@Nonnull JSONObject json, int sites) throws IOException{
response.protocol(),
response.code(),
response.message(),
- response.headers().toString()
+ response.headers()
);
return;
}
@@ -155,7 +155,7 @@ public void performPOST(@Nonnull JSONObject json, int sites) throws IOException{
response.protocol(),
response.code(),
response.message(),
- response.headers().toString()
+ response.headers()
);
return;
}
@@ -213,7 +213,7 @@ private JSONObject performGET(@Nonnull String url, String header) throws IOExcep
response.protocol(),
response.code(),
response.message(),
- response.headers().toString()
+ response.headers()
);
return null;
}
@@ -227,7 +227,7 @@ private JSONObject performGET(@Nonnull String url, String header) throws IOExcep
response.protocol(),
response.code(),
response.message(),
- response.headers().toString()
+ response.headers()
);
return null;
}