DiscordIntegration 2.1.0

dotnet add package DiscordIntegration --version 2.1.0
                    
NuGet\Install-Package DiscordIntegration -Version 2.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DiscordIntegration" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DiscordIntegration" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DiscordIntegration" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DiscordIntegration --version 2.1.0
                    
#r "nuget: DiscordIntegration, 2.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=DiscordIntegration&version=2.1.0
                    
Install DiscordIntegration as a Cake Addin
#tool nuget:?package=DiscordIntegration&version=2.1.0
                    
Install DiscordIntegration as a Cake Tool

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));
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 760 12/31/2022
2.1.0-prerelease.2 113 12/31/2022
2.1.0-prerelease.1 113 12/31/2022
2.0.4 329 12/30/2022
2.0.3 354 12/29/2022 2.0.3 is deprecated because it has critical bugs.
2.0.2 307 12/29/2022
2.0.1 312 12/29/2022
2.0.0 316 12/28/2022
2.0.0-prerelease.3 125 12/28/2022
2.0.0-prerelease.2 119 12/28/2022
2.0.0-prerelease.1 128 12/28/2022
1.2.0 312 12/27/2022
1.2.0-prerelease.2 120 12/27/2022
1.2.0-prerelease.1 122 12/27/2022
1.1.0 329 12/27/2022
1.0.1 455 12/25/2022
1.0.0 398 12/25/2022