Create all interaction models

This commit is contained in:
Daan Boerlage 2021-09-20 01:28:26 +02:00
parent 209887e237
commit 60547140ea
Signed by: daan
GPG key ID: FCE070E1E4956606
59 changed files with 1589 additions and 222 deletions

View file

@ -0,0 +1,33 @@
using System.Text.Json.Serialization;
namespace Geekbot.Core.Interactions.Embed
{
/// <see href="https://discord.com/developers/docs/resources/channel#embed-object-embed-thumbnail-structure" />
public record EmbedThumbnail
{
/// <summary>
/// source url of thumbnail (only supports http(s) and attachments)
/// </summary>
[JsonPropertyName("url")]
public string Url { get; set; }
/// <summary>
/// a proxied url of the thumbnail
/// </summary>
[JsonPropertyName("proxy_url")]
public string ProxyUrl { get; set; }
/// <summary>
/// height of thumbnail
/// </summary>
[JsonPropertyName("height")]
public int Height { get; set; }
/// <summary>
/// width of thumbnail
/// </summary>
[JsonPropertyName("width")]
public int Width { get; set; }
}
}