Error: RPC_CONNECTION_TIMEOUT
at Timeout._onTimeout (D:\Documents\Nodejs\Electron\4anime-app\node_modules\discord-rpc\src\client.js:107:47)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7) Promise {
Error: RPC_CONNECTION_TIMEOUT
at Timeout._onTimeout (D:\Documents\Nodejs\Electron\4anime-app\node_modules\discord-rpc\src\client.js:107:47)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
}
here's the code
```
function updateDiscordRPC() {
const client = require("discord-rich-presence")("removed for privacy");
client.on("connected", () => {
console.log("connected!");
});
client.updatePresence({
state: "Watchin Anime",
details: `watching ${getCurrentUrl}`,
largeImageKey: "logo",
instance: false,
elapsedTime: new Date(),
});
}
```
full project is [here](https://www.github.com/Xart3mis/4anime-app)
everytime i start the app i get this error
Error: RPC_CONNECTION_TIMEOUT at Timeout._onTimeout (D:\Documents\Nodejs\Electron\4anime-app\node_modules\discord-rpc\src\client.js:107:47) at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7) Promise {