Lachee / discord-rpc-csharp

C# custom implementation for Discord Rich Presence. Not deprecated and still available!
MIT License
561 stars 93 forks source link

[BUG] Updating details not working #205

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

Logs

Provide your logs or a link to the logs here. Make sure you have at least LogLevel.Info enabled.

Capture Capture

ghost commented 1 year ago

bruh wtf it deleted everytying i just wrote

ghost commented 1 year ago

for fuck sakes man.

the rpc just doesnt update when you try updating it using a string (field) from another class

ghost commented 1 year ago

it doesn't work updating it in general

Lachee commented 1 year ago

no need for that language lol. Please provide logs from the RPC (set it to debug if you can).

the rpc just doesnt update when you try updating it using a string (field) from another class

It doesn't matter if it comes from a field, property, or method from another class. C# copies the string regardless to UpdateDetails

ghost commented 1 year ago

where is the logs located

Lachee commented 1 year ago

You will need to add the FileLogger to your constructor. You should be able to see an example in either the ReadMe or suplimentry example project (sorry docfx is broken atm)

ghost commented 1 year ago

na i fixed it, i was creating a new instance of the form instead of getting the one i alr had