Buttons on C#
See original GitHub issueI implemented this:
` DiscordRPC.client.SetPresence(new RichPresence() {
Details = "Details",
State = $"State",
Buttons = new Button()
{
Url = "https://google.com",
Label = "Discord Server",
},
Assets = new Assets()
{
LargeImageKey = "imakey",
LargeImageText = "text",
}
});`
And im getting this error: Cannot implicitly convert type ‘DiscordRPC.Button’ to ‘DiscordRPC.Button[]’
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
C program a button to perform a task once when pressed ...
I am relatively new to c and the Raspberry Pi and am trying simple programs. What I would like is when the button...
Read more >Button in C# - GeeksforGeeks
A Button is an essential part of an application, or software, or webpage. It allows the user to interact with the application or...
Read more >Three simple button-LED c-programs
Three simple button-LED c-programs illustrating the use of macros. Here are three simple programs in c for the AVR tiny44 that all do...
Read more >Press Me Button Game - C Language Programming
Press Me Button Game - C Language Programming. Press Me Button Game. Click here to open this program in Turbo C++ / ...
Read more >Can I create a button in C without any Windows?
The real-world answer is that you will never create a button or a window in C yourself. You pick an operating system, or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
that is… one way to do it. However a better, cleaner way (that doesn’t rely on JSON serialization (seriously dont do that just create the object)) would be the example provided https://github.com/Lachee/discord-rpc-csharp/blob/master/DiscordRPC.Example/Program.cs#L108-L111
@DeathlyBower959 I found one solution…