discord-rpc-java
discord-rpc-java copied to clipboard
Java implementation of Discord RPC for rich presence https://github.com/discordapp/discord-rpc
Data stays in the presenceQueue...  Because  connection is not correctly established. Code on startup ``` try{ discordRpc = new DiscordRpc(); discordRpc.init(clientProperties.getDiscordConfig().getApplicationId(), discordEventHandler, true, null); timer.schedule(new TimerTask() { @Override...
There's an issue with the Json system. When looking at this. The DiscordRichPresence I have set to PartySize=0, when it's going to encode the data to Json. It errors and...
When running `discordRpc.init()` the following exception is thrown ``` Exception in thread "main" java.lang.RuntimeException: Failed to create directory '/home/koenn/.local' at com.github.psnrigner.discordrpcjava.impl.BaseConnectionUnix.register(BaseConnectionUnix.java:188) at com.github.psnrigner.discordrpcjava.DiscordRpc.register(DiscordRpc.java:294) at com.github.psnrigner.discordrpcjava.DiscordRpc.init(DiscordRpc.java:130) ``` The directory `/home/koenn/.local` already...
Fix issue #14. Ensure that `state` and `details` are not empty strings before adding them to the JSON sent to Discord. That's necessary because for some reason Discord won't update...
Hi ! Calling `DiscordRpc.updatePresence(DiscordRichPresence)` on a presence that has neither details nor state has no effect. Indeed, if these properties are not set (or empty) then Discord is not updated....
I fixed the commits now.
https://github.com/PSNRigner/discord-rpc-java/blob/master/src/main/java/net/rigner/discordrpc/ErrorCode.java https://github.com/PSNRigner/discord-rpc-java/blob/master/src/main/java/net/rigner/discordrpc/impl/RpcConnection.java#L193 https://github.com/PSNRigner/discord-rpc-java/blob/master/src/main/java/net/rigner/discordrpc/DiscordRpc.java#L328 Implement more error codes, with the use of an id instead of using the values array.
Hey there, I tried to implement the api in my game, it worked but it didnt update the stuff. As example, when the game starts, the details should be 'Main...
It should only throw an exception if the folder is not created.
Actually linux and OSX and not tested (because of personal issues, i'll be able to test on ubuntu really soon) Also need to add unit tests where possible.