question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] UpdateState not working

See original GitHub issue

Describe the bug

UpdateState does not update the state on discord.

DiscordRpcClient m_client = new DiscordRpcClient({appid}, -1);
m_client.Initialize();
RichPresence rp = new RichPresence();
rp.Timestamps = new Timestamps(DateTime.UtcNow);
rp.State = "...";
rp.Details = "...";
rp.Assets = new Assets() { LargeImageKey = "...", LargeImageText = "..." };
m_client.SetPresence(rp);

when I then call m_client.UpdateState("test"); the CurrentPresence property updates but it doesn’t update on discord.

Desktop (please complete the following information):

  • OS: Windows 10 2004
  • Framework: .NET
  • Version: 4.7.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
minisbettcommented, Nov 3, 2020

A quick fix would be nice, otherwise this library has no use.

1reaction
minisbettcommented, Oct 29, 2020

Of course not, it’s just a summary of what I have. The client is in a static class with methods using it. The program is running. I can show console output later, I’m currently on the way to school

Read more comments on GitHub >

github_iconTop Results From Across the Web

React setState not updating state - javascript
My problem was that setState was happening from callback func, issued by one of the components. And my suspicious is that the call...
Read more >
[BUG] Update State Not Working · Issue #142
Describe the bug When trying to call 'qb-doorlock:server:updateState', the door state does not update. Please see attached images.
Read more >
Why React doesn't update state immediately
State updates in React are asynchronous; when an update is requested, there is no guarantee that the updates will be made immediately.
Read more >
(React) setState not updating - JavaScript
Hi friends, setState is not updating values in the state for some reason when I pause the timer although it's receiving correct parameters....
Read more >
React state not updating immediately?
It might seems like the state update isn't updating or lagging behind. ... In most cases this solution is enough to solve your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found