Skip to content

Commit

Permalink
Merge pull request #258 from botblock/feature/add-discords.com
Browse files Browse the repository at this point in the history
Add 1 site and deprecate 1 Site
  • Loading branch information
Andre601 authored Jul 26, 2021
2 parents ef43700 + 090fddc commit 998c305
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins{
id 'com.github.johnrengelman.shadow' version '5.2.0'
}

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

allprojects {
apply plugin: 'maven-publish'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Info{
/**
* Patch version of the Wrapper.
*/
public static final int PATCH = 3;
public static final int PATCH = 4;

/**
* Full version in the format {@code major.minor.patch}.
Expand Down
21 changes: 20 additions & 1 deletion core/src/main/java/org/botblock/javabotblockapi/core/Site.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

package org.botblock.javabotblockapi.core;

import org.botblock.javabotblockapi.core.annotations.DeprecatedSince;
import org.botblock.javabotblockapi.core.annotations.PlannedRemoval;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -112,8 +115,13 @@ public class Site{
* <li>GET</li>
* <li>POST</li>
* </ul>
*
* @deprecated List was aquired by {@link #DISCORDS_COM discords.com}
*/
public static final Site BOTSFORDISCORD_COM = new Site("botsfordiscord.com", HttpMethod.GET, HttpMethod.POST);
@Deprecated
@DeprecatedSince(major = 6, minor = 7, patch = 4, replacements = "DISCORDS_COM")
@PlannedRemoval(major = 6, minor = 7, patch = 6)
public static final Site BOTSFORDISCORD_COM = new Site("botsfordiscord.com");

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

/**
* <a href="https://discords.com" target="_blank">discords.com</a> formerly botsfordiscord.com
*
* <p>Supported methods:
* <ul>
* <li>GET</li>
* <li>POST</li>
* </ul>
*/
public static final Site DISCORDS_COM = new Site("discords.com", HttpMethod.GET, HttpMethod.POST);

/**
* <a href="https://discordservices.net" target="_blank">discordservices.net</a>
*
Expand Down

0 comments on commit 998c305

Please sign in to comment.