A library to help integrate Discord into .NET applications using webhooks and RPC.
Send messages to Discord using webhooks.
using var myWebhookClient = new WebhookClient("https://discord.com/api/webhooks/1234567890/abcdefghijklmnopqrstuvwxyz");
var myWebhookMessage = new WebhookMessage()
.AddEmbed(new Embed()
.WithTitle("Discord Integration")
.WithDescription("A very cool library.")
.WithColor(EmbedColor.Blurple));
await myWebhookClient.ExecuteAsync(myWebhookMessage);
Let users show off your program on Discord with Rich Presence.
using var myRpcClient = new RpcClient(1234567890);
myRpcClient.Presence = new RichPresence()
.WithState("Playing a cool game")
.WithDetails("Doing something cool")
.WithParty(new RichPresenceParty(currentSize: 4, maxSize: 5));