Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
madmagic007 opened this issue Jan 24, 2025 · 1 comment
Open

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

madmagic007 opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@madmagic007
Copy link

madmagic007 commented Jan 24, 2025

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

@maximmax42
Copy link
Contributor

Discord seems to have fixed the issue.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants