Prepare for release and deprecate old RPC sdk

This commit is contained in:
2024-12-02 11:46:36 +02:00
parent d2aca8ffa9
commit 5a8769bee9
13 changed files with 13 additions and 4 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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

View File

@@ -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

View File

@@ -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 {
/**

View File

@@ -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 {
/**

View File

@@ -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 {
/**

View File

@@ -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 {
/**

View File

@@ -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 {
/**

View File

@@ -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 {
/**

View File

@@ -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