-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem setting this up with Electron #5
Comments
you can't use WebSocket for rich presence unless you're whitelisted, you have to use IPC, and no auth is required to use it. |
If I use the Rich Presence example on the readme using IPC I get: |
Ok, updated from beta1 to beta2 and now it show |
I've already done that. I can also see that the event SET_ACTIVITY is correctly sent to discord with - from what I can understand - correct datas |
Is there an error event I can listen to ? |
I got it working now. For anyone in the same case as me, you must put the code inside the main.js file and not the renderer.js file. |
it has to go in main because its a separate process from renderer. Discord will think that your process has no window and therefore won't think its a game if its in the renderer |
Ok, thanks 👍 |
I'm trying to add rich presence to an electron app.
I've tried the default code:
After accepting discord auth, it redirects to my redirect Url, but not access token, I got this instead :
http://localhost:4242/oauth/redirect#error=invalid_scope
So I tried removing scopes. I just kept
rpc.api
scope.This time, I get the token.
But when I try to
all I get is
Could you help on that ?
Thanks
The text was updated successfully, but these errors were encountered: