Git Product home page Git Product logo

Comments (9)

devsnek avatar devsnek commented on May 31, 2024 2

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

from rpc.

Armaldio avatar Armaldio commented on May 31, 2024 1

I got it working now.
It's working with nodejs and electron

For anyone in the same case as me, you must put the code inside the main.js file and not the renderer.js file.
I still don't know why, I will try to find more infos.
You can still communicate between the main and the renderer process using IPC or any other methods

from rpc.

devsnek avatar devsnek commented on May 31, 2024

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.

from rpc.

Armaldio avatar Armaldio commented on May 31, 2024

If I use the Rich Presence example on the readme using IPC I get:
Cannot read property 'accessToken' of undefined

from rpc.

Armaldio avatar Armaldio commented on May 31, 2024

Ok, updated from beta1 to beta2 and now it show Ready, setting rich presence but no rich presence
It still show the old format

from rpc.

devsnek avatar devsnek commented on May 31, 2024

https://discordapp.com/developers/docs/rich-presence/faq#q-i-don't-see-any-playing-status-for-my-game

from rpc.

Armaldio avatar Armaldio commented on May 31, 2024

I've already done that.
As i've told you It still show the old format

I can also see that the event SET_ACTIVITY is correctly sent to discord with - from what I can understand - correct datas

from rpc.

Armaldio avatar Armaldio commented on May 31, 2024

Is there an error event I can listen to ?

from rpc.

Armaldio avatar Armaldio commented on May 31, 2024

Ok, thanks 👍

from rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.