Skip to content

Commit

Permalink
[Fix] Fixed incorrect cmd for Rejecting/Ignoring Join Requests
Browse files Browse the repository at this point in the history
  • Loading branch information
CDAGaming committed Jun 7, 2023
1 parent 4624cbc commit 663d4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/jagrosh/discordipc/IPCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public void respondToJoinRequest(User user, ApprovalMode approvalMode, Callback
}

JsonObject pipeData = new JsonObject();
pipeData.addProperty("cmd", approvalMode == ApprovalMode.ACCEPT ? "SEND_ACTIVITY_JOIN_INVITE" : "CLOSE_ACTIVITY_REQUEST");
pipeData.addProperty("cmd", approvalMode == ApprovalMode.ACCEPT ? "SEND_ACTIVITY_JOIN_INVITE" : "CLOSE_ACTIVITY_JOIN_REQUEST");

JsonObject args = new JsonObject();
args.addProperty("user_id", user.getId());
Expand Down

0 comments on commit 663d4fc

Please sign in to comment.