discordjs / RPC

A simple RPC client for Discord
MIT License
466 stars 191 forks source link

Discord RPC not changing activity or freezes (client not destroying or clearing, even after closing client) #80

Closed SgtBreadStick closed 3 years ago

SgtBreadStick commented 4 years ago

Recently a discord update was published (or it seems like it) and ever since the discordjs/RPC npm package has been having many issues. One of them being that discord's rpc activity does not change and will just be frozen until discord is restarted (even after node client is closed).

Example:

Code used: https://github.com/VirtualTruckerRPC/Virtual-Trucker-Rich-Presence/tree/dev

Is this a known issue? As it seems to be quite a major bug.

devsnek commented 4 years ago

I can't reproduce this problem.

SgtBreadStick commented 4 years ago

Strange, it's very random when it happens. Sometimes it will be perfectly fine and sometimes it does the above. I'll see if i can find a way to reproduce (as right now its just chance)

Timeraa commented 4 years ago

Can't reproduce either.

SwurvZ commented 4 years ago

I am also having this exact same issue

devsnek commented 4 years ago

It seems to me it is a problem in your virtual trucker code, not this library.

SgtBreadStick commented 4 years ago

I've been figuring out what has been causing the issues. This error has been spit out when the game closed and RPC client tried destroying.

https://pastebin.com/0WVzXunM