Skip to content

Commit 998c305

Browse files
authored
Merge pull request #258 from botblock/feature/add-discords.com
Add 1 site and deprecate 1 Site
2 parents ef43700 + 090fddc commit 998c305

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

build.gradle

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

10-
def ver = new Version(major: 6, minor: 7, patch: 3)
10+
def ver = new Version(major: 6, minor: 7, patch: 4)
1111

1212
allprojects {
1313
apply plugin: 'maven-publish'

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class Info{
3939
/**
4040
* Patch version of the Wrapper.
4141
*/
42-
public static final int PATCH = 3;
42+
public static final int PATCH = 4;
4343

4444
/**
4545
* Full version in the format {@code major.minor.patch}.

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

+20-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
package org.botblock.javabotblockapi.core;
2020

21+
import org.botblock.javabotblockapi.core.annotations.DeprecatedSince;
22+
import org.botblock.javabotblockapi.core.annotations.PlannedRemoval;
23+
2124
import java.util.ArrayList;
2225
import java.util.Arrays;
2326
import java.util.List;
@@ -112,8 +115,13 @@ public class Site{
112115
* <li>GET</li>
113116
* <li>POST</li>
114117
* </ul>
118+
*
119+
* @deprecated List was aquired by {@link #DISCORDS_COM discords.com}
115120
*/
116-
public static final Site BOTSFORDISCORD_COM = new Site("botsfordiscord.com", HttpMethod.GET, HttpMethod.POST);
121+
@Deprecated
122+
@DeprecatedSince(major = 6, minor = 7, patch = 4, replacements = "DISCORDS_COM")
123+
@PlannedRemoval(major = 6, minor = 7, patch = 6)
124+
public static final Site BOTSFORDISCORD_COM = new Site("botsfordiscord.com");
117125

118126
/**
119127
* <a href="https://bots.ondiscord.xyz" target="_blank">bots.ondiscord.xyz</a>
@@ -214,6 +222,17 @@ public class Site{
214222
*/
215223
public static final Site DISCORDLIST_SPACE = new Site("discordlist.space", HttpMethod.GET, HttpMethod.POST);
216224

225+
/**
226+
* <a href="https://discords.com" target="_blank">discords.com</a> formerly botsfordiscord.com
227+
*
228+
* <p>Supported methods:
229+
* <ul>
230+
* <li>GET</li>
231+
* <li>POST</li>
232+
* </ul>
233+
*/
234+
public static final Site DISCORDS_COM = new Site("discords.com", HttpMethod.GET, HttpMethod.POST);
235+
217236
/**
218237
* <a href="https://discordservices.net" target="_blank">discordservices.net</a>
219238
*

0 commit comments

Comments
 (0)