discord-rpc-csharp icon indicating copy to clipboard operation
discord-rpc-csharp copied to clipboard

[BUG] Unable to add assets, causes "unknown error"

Open madmagic007 opened this issue 10 months ago • 1 comments

Describe the bug Whenever i add any asset, the logger gives an "unkown error" and no RPC is shown

To Reproduce Code example:

public static void Main() {
    string id = "772853901396279376";

	DiscordRpcClient client = new(id) {
		Logger = new ConsoleLogger() { Level = LogLevel.Info }
	};

	client.OnReady += (sender, e) => {
        Console.WriteLine("Received Ready from user {0}", e.User.Username);
    };

    client.OnPresenceUpdate += (sender, e) => {
        Console.WriteLine("Received Update! {0}", e.Presence);
    };

    client.Initialize();

    client.SetPresence(new RichPresence {
        Details = "Test",
        State = "example",
        Assets = new Assets() {
            LargeImageKey = "gmod"
        }
    });

    while (true) { } //keep alive
}

Image

When removing the assets from the RichPresence, it works without issue.

Expected behavior Shows the rpc with assets

Desktop (please complete the following information):

  • OS: Windows 11
  • Framework: .net 8.0
  • Library Version: 1.2.1.24

I have tried the 1.3.0 version, which is unavailable on nuget, but the same issue occurs

madmagic007 avatar Jan 24 '25 01:01 madmagic007

Discord seems to have fixed the issue.

maximmax42 avatar Jan 25 '25 04:01 maximmax42