Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Structures/Embeds/Embed.cs

89 lines
2 KiB
C#

using Newtonsoft.Json;
using System;
namespace Maki.Structures.Embeds
{
/// <summary>
/// Discord API Embed structure
/// </summary>
internal struct Embed
{
/// <summary>
/// title of embed
/// </summary>
[JsonProperty("title")]
public string Title;
/// <summary>
/// type of embed (always 'rich' for webhook embeds)
/// </summary>
[JsonProperty("type")]
public string Type;
/// <summary>
/// description of embed
/// </summary>
[JsonProperty("description")]
public string Description;
/// <summary>
/// url of embed
/// </summary>
[JsonProperty("url")]
public string Url;
/// <summary>
/// timestamp of embed content
/// </summary>
[JsonProperty("timestamp")]
public DateTime? Timestamp;
/// <summary>
/// colour code of the embed
/// </summary>
[JsonProperty("color")]
public uint Colour;
/// <summary>
/// footer information
/// </summary>
[JsonProperty("footer")]
public EmbedFooter? Footer;
/// <summary>
/// image information
/// </summary>
[JsonProperty("image")]
public EmbedImage? Image;
/// <summary>
/// thumbnail information
/// </summary>
[JsonProperty("thumbnail")]
public EmbedImage? Thumbnail;
/// <summary>
/// video information
/// </summary>
[JsonProperty("video")]
public EmbedVideo? Video;
/// <summary>
/// provider information
/// </summary>
[JsonProperty("provider")]
public EmbedProvider? Provider;
/// <summary>
/// author information
/// </summary>
[JsonProperty("author")]
public EmbedAuthor? Author;
/// <summary>
/// fields information
/// </summary>
[JsonProperty("fields")]
public EmbedField[] Fields;
}
}