discord-rpc-csharp
discord-rpc-csharp copied to clipboard
[BUG] Unable to add assets, causes "unknown error"
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
}
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
Discord seems to have fixed the issue.