Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 875 Bytes

NUGET_README.md

File metadata and controls

32 lines (22 loc) · 875 Bytes

Discord Integration

A library to help integrate Discord into .NET applications using webhooks and RPC.

Webhooks

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);

Rich Presence

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));