Comments (5)
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.
from java-discord-rpc.
yes it works as described in the official documentation
from java-discord-rpc.
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();
from java-discord-rpc.
Made a readme #2
from java-discord-rpc.
I have added javadoc in PR #6
from java-discord-rpc.
Related Issues (20)
- Module not found HOT 6
- [Request/Help] Function to check if an Image Exists? HOT 3
- [Error/Bug] MacOS Error Loading dll (Code Signature Invalid) HOT 5
- Problem HOT 3
- Handlers not being triggered HOT 7
- Unable to load library 'discord-rpc': The specified module could not be found. HOT 15
- Imposible to use it in a minecraft mod HOT 6
- Error in LSRegisterURL: -10811 HOT 1
- This is not issue, but question HOT 1
- How to reset StartTimestamp and EndTimestamp presences? HOT 1
- jcenter returning 502 HOT 1
- UnsatisfiedLinkError on release jar HOT 7
- How to utilize Discord_Initialize() to connect to second local instance of Discord HOT 4
- Deprecation of the official Discord SDK for RPC HOT 1
- Unable to load library 'discord-rpc' Minecraft 1.8.8 MCP Error HOT 2
- This is less of an issue and more of something i want to know HOT 1
- About secret HOT 2
- Error in LSRegisterURL: -10811 HOT 1
- java.lang.UnsatisfiedLinkError: Unable to load library 'discord-rpc' HOT 1
- Suggestion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-discord-rpc.