ShimmyMySherbet.DiscordWebhook 2.0.0

Prefix Reserved
dotnet add package ShimmyMySherbet.DiscordWebhook --version 2.0.0                
NuGet\Install-Package ShimmyMySherbet.DiscordWebhook -Version 2.0.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="ShimmyMySherbet.DiscordWebhook" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ShimmyMySherbet.DiscordWebhook --version 2.0.0                
#r "nuget: ShimmyMySherbet.DiscordWebhook, 2.0.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.
// Install ShimmyMySherbet.DiscordWebhook as a Cake Addin
#addin nuget:?package=ShimmyMySherbet.DiscordWebhook&version=2.0.0

// Install ShimmyMySherbet.DiscordWebhook as a Cake Tool
#tool nuget:?package=ShimmyMySherbet.DiscordWebhook&version=2.0.0                

DiscordWebhooks

A small light weight library for sending webhook messages to discord.

Provides Async and non-async APIs.

Installation

Install via Nu-get: Install-Package ShimmyMySherbet.DiscordWebhook

Usage Example:

WebhookMessage testMessage = new WebhookMessage()
    .WithContent("Message Content")
    .WithAvatar("https://cdn.discordapp.com/attachments/368648379556954115/818717925842223114/bojo.png")
    .WithUsername("Test Bot")
    .PassEmbed()
        .WithTitle("Announcement")
        .WithDescription("Los Angeles Carries Out Controlled Burn Of Old-Growth Celebrities To Make Way For New Stars")
        .WithColor(Color.red)
        .WithImage("https://i.kinja-img.com/gawker-media/image/upload/c_fit,f_auto,g_center,pg_1,q_60,w_965/aehqzlkjawktzvzqh22p.jpg")
        .WithURL("https://www.theonion.com/los-angeles-carries-out-controlled-burn-of-old-growth-c-1846433536")
        .WithTimestamp(DateTime.Now)
        .WithField("Category", "News Brief")
        .WithField("Author", "Someone idk")
        .Finalize()
    .PassEmbed()
        .WithTitle("2nd embed title here")
        .WithDescription("Description")
        .WithImage("https://cdn.discordapp.com/attachments/368648379556954115/818717925842223114/bojo.png")
        .WithColor(Color.magenta)
        .WithAuthor("Boris", "https://www.theonion.com/los-angeles-carries-out-controlled-burn-of-old-growth-c-1846433536")
        .Finalize();

await DiscordWebhookService.PostMessageAsync(WebhookURL, testMessage);

Result:

<img src="https://i.ibb.co/T1pPj7t/image.png">

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ShimmyMySherbet.DiscordWebhook:

Package Downloads
Hath.PlayerStats

Enriches your server by saving and displaying player statistics. a range of in-game performance metrics, and other pertinent data.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 771 8/9/2023
1.3.0 842 12/25/2021
1.2.0 441 6/1/2021
1.0.0 407 3/9/2021

Released v2.0. Added attachment, message editing, deleting, and finished implementing the rest of the Discord webhook API