Prepare for release and deprecate old RPC sdk
This commit is contained in:
@@ -11,6 +11,7 @@ import java.util.List;
|
||||
* Class containing references to all available discord event handles.
|
||||
* Registering a handler is optional, and non-assigned handlers will be ignored
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class DiscordEventHandlers extends Structure {
|
||||
|
||||
// Callback for when the RPC was initialized successfully
|
||||
|
@@ -9,6 +9,7 @@ import org.jetbrains.annotations.Nullable;
|
||||
* @author HypherionSA
|
||||
* Java Wrapper of the Discord-RPC Library
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface DiscordRPC extends Library {
|
||||
|
||||
DiscordRPC INSTANCE = Native.load("discord-rpc", DiscordRPC.class);
|
||||
|
@@ -13,6 +13,7 @@ import java.util.List;
|
||||
* @author HypherionSA
|
||||
* Class reprenting a Discord RPC activity
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class DiscordRichPresence extends Structure {
|
||||
|
||||
// First line of text on the RPC
|
||||
|
@@ -9,6 +9,7 @@ import java.util.List;
|
||||
* @author HypherionSA
|
||||
* Class representing the Discord User
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class DiscordUser extends Structure {
|
||||
|
||||
// The User ID of the User
|
||||
|
@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
|
||||
* @author HypherionSA
|
||||
* Callback for when the Discord RPC disconnects
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface DisconnectedCallback extends Callback {
|
||||
|
||||
/**
|
||||
|
@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
|
||||
* @author HypherionSA
|
||||
* Callback for when the RPC ran into an error
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface ErroredCallback extends Callback {
|
||||
|
||||
/**
|
||||
|
@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
|
||||
* @author HypherionSA
|
||||
* Callback for when someone was approved to join your game
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface JoinGameCallback extends Callback {
|
||||
|
||||
/**
|
||||
|
@@ -7,6 +7,7 @@ import com.sun.jna.Callback;
|
||||
* @author HypherionSA
|
||||
* Callback for when someone requests to join your game
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface JoinRequestCallback extends Callback {
|
||||
|
||||
/**
|
||||
|
@@ -7,6 +7,7 @@ import com.sun.jna.Callback;
|
||||
* @author HypherionSA
|
||||
* Callback for when the RPC has connected successfully
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface ReadyCallback extends Callback {
|
||||
|
||||
/**
|
||||
|
@@ -6,6 +6,7 @@ import com.sun.jna.Callback;
|
||||
* @author HypherionSA
|
||||
* Callback for when someone is requesting to spectate your game
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface SpectateGameCallback extends Callback {
|
||||
|
||||
/**
|
||||
|
@@ -9,6 +9,7 @@ import java.io.Serializable;
|
||||
* Helper class to add Buttons to Discord Rich Presence
|
||||
* This can not be used with Join/Spectate
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public class RPCButton implements Serializable {
|
||||
|
||||
// The label of the button
|
||||
|
Reference in New Issue
Block a user