Rich presence for Electron application

node 18.12.1 electron 23.0.0 discord.js 14.13.0 how can I setup custom presence like in attached screenshot for my electron app? is it possible with discord.js? or should I use discord-rpc package for this, but last time it was published is 2 years ago so... any suggestions please
No description
4 Replies
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Seren_Modz 21
Seren_Modz 218mo ago
u have to use the discord-rpc package. while the last publish was 2 years ago, nothing really has changed, so it still works as u would expect
Seren_Modz 21
Seren_Modz 218mo ago
as for setting it up, u can take a look at the example on the readme and/or the example they have on github https://github.com/discordjs/RPC/tree/master/example
GitHub
RPC/example at master · discordjs/RPC
A simple RPC client for Discord. Contribute to discordjs/RPC development by creating an account on GitHub.
Wordllban
Wordllban8mo ago
thanks!