Files
tbd-station-14/Content.Server/Discord/WebhookEmbed.cs
LankLTE 94628d6ab1 Relay custom votes to a webhook (#18561)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
2023-12-14 20:03:32 -08:00

28 lines
665 B
C#

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; } = "";
[JsonPropertyName("color")]
public int Color { get; set; } = 0;
[JsonPropertyName("footer")]
public WebhookEmbedFooter? Footer { get; set; } = null;
[JsonPropertyName("fields")]
public List<WebhookEmbedField> Fields { get; set; } = default!;
public WebhookEmbed()
{
}
}