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
<PackageReference Include="ShimmyMySherbet.DiscordWebhook" Version="2.0.0" />
paket add ShimmyMySherbet.DiscordWebhook --version 2.0.0
#r "nuget: ShimmyMySherbet.DiscordWebhook, 2.0.0"
// 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 | Versions 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. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 12.0.3)
-
.NETFramework 4.8
- Newtonsoft.Json (>= 12.0.3)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.3)
-
net6.0
- Newtonsoft.Json (>= 12.0.3)
-
net7.0
- Newtonsoft.Json (>= 12.0.3)
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.
Released v2.0. Added attachment, message editing, deleting, and finished implementing the rest of the Discord webhook API