89 lines
2 KiB
C#
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 int 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;
|
|
}
|
|
}
|