Relay custom votes to a webhook (#18561)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Content.Server.Discord;
|
||||
|
||||
// https://discord.com/developers/docs/resources/channel#embed-object-embed-structure
|
||||
public struct WebhookEmbed
|
||||
{
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; } = "";
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; } = "";
|
||||
|
||||
@@ -14,6 +17,10 @@ public struct WebhookEmbed
|
||||
[JsonPropertyName("footer")]
|
||||
public WebhookEmbedFooter? Footer { get; set; } = null;
|
||||
|
||||
|
||||
[JsonPropertyName("fields")]
|
||||
public List<WebhookEmbedField> Fields { get; set; } = default!;
|
||||
|
||||
public WebhookEmbed()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user