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:
LankLTE
2023-12-14 20:03:32 -08:00
committed by GitHub
parent 53e980abe5
commit 94628d6ab1
10 changed files with 158 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
using System.Text.Json.Serialization;
namespace Content.Server.Discord;
// https://discord.com/developers/docs/resources/channel#embed-object-embed-field-structure
public struct WebhookEmbedField
{
[JsonPropertyName("name")]
public string Name { get; set; } = "";
[JsonPropertyName("value")]
public string Value { get; set; } = "";
[JsonPropertyName("inline")]
public bool Inline { get; set; } = true;
public WebhookEmbedField()
{
}
}