Closed MinnDevelopment closed 6 years ago
Is the API already working? If yes I'd like to get a little instruction, because I can't get it to work. If I get it working then, I can help you creating a documentation/wiki.
yes it works as described in the official documentation
Here is a basic example
DiscordRPC lib = DiscordRPC.INSTANCE;
String applicationId = "";
String steamId = "";
DiscordEventHandlers handlers = new DiscordEventHandlers();
handlers.ready = () -> System.out.println("Ready!");
lib.Discord_Initialize(applicationId, handlers, true, steamId);
DiscordRichPresence presence = new DiscordRichPresence();
presence.startTimestamp = System.currentTimeMillis() / 1000; // epoch second
presence.details = "Testing RPC";
lib.Discord_UpdatePresence(presence);
// in a worker thread
while (!Thread.currentThread().isInterrupted())
lib.Discord_RunCallbacks();
Made a readme #2
I have added javadoc in PR #6
This currently has no README or documentation on how to use this library.