mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
20 lines
488 B
C#
20 lines
488 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("description")]
|
|
public string Description { get; set; } = "";
|
|
|
|
[JsonPropertyName("color")]
|
|
public int Color { get; set; } = 0;
|
|
|
|
[JsonPropertyName("footer")]
|
|
public WebhookEmbedFooter? Footer { get; set; } = null;
|
|
|
|
public WebhookEmbed()
|
|
{
|
|
}
|
|
}
|