Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Set the INSTANCE and MATCH_SECRET fields to be deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatuu committed Mar 21, 2018
1 parent 6564cf5 commit 9e5104f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>net.arikia.dev</groupId>
<artifactId>discord-rpc</artifactId>
<name>DiscordRPC</name>
<version>1.2.1</version>
<version>1.3</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class DiscordEventHandlers extends Structure {

@Override
public List<String> getFieldOrder(){
return Arrays.asList(new String[] {"ready", "disconnected", "errored", "joinGame", "spectateGame", "joinRequest"});
return Arrays.asList("ready", "disconnected", "errored", "joinGame", "spectateGame", "joinRequest");
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/net/arikia/dev/drpc/DiscordRichPresence.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DiscordRichPresence extends Structure {

@Override
public List<String> getFieldOrder(){
return Arrays.asList(new String[] {"state", "details", "startTimestamp", "endTimestamp", "largeImageKey", "largeImageText", "smallImageKey", "smallImageText", "partyId", "partySize", "partyMax", "matchSecret", "joinSecret", "spectateSecret", "instance"});
return Arrays.asList("state", "details", "startTimestamp", "endTimestamp", "largeImageKey", "largeImageText", "smallImageKey", "smallImageText", "partyId", "partySize", "partyMax", "matchSecret", "joinSecret", "spectateSecret", "instance");
}
/**
* State of the player's current party.
Expand Down Expand Up @@ -94,6 +94,7 @@ public List<String> getFieldOrder(){
/**
* Unique hashed string for Spectate and Join.
*/
@Deprecated
public String matchSecret;

/**
Expand All @@ -109,5 +110,6 @@ public List<String> getFieldOrder(){
/**
* Marks the matchSecret as a game session with a specific beginning and end.
*/
@Deprecated
public int instance;
}

0 comments on commit 9e5104f

Please sign in to comment.