Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
21 lines
476 B
C#
21 lines
476 B
C#
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()
|
|
{
|
|
}
|
|
}
|