2021-11-27 02:10:56 +00:00
|
|
|
namespace Myriad.Types;
|
|
|
|
|
|
|
|
public record Embed
|
2020-12-22 12:15:26 +00:00
|
|
|
{
|
2021-11-27 02:10:56 +00:00
|
|
|
public string? Title { get; init; }
|
|
|
|
public string? Type { get; init; }
|
|
|
|
public string? Description { get; init; }
|
|
|
|
public string? Url { get; init; }
|
|
|
|
public string? Timestamp { get; init; }
|
|
|
|
public uint? Color { get; init; }
|
|
|
|
public EmbedFooter? Footer { get; init; }
|
|
|
|
public EmbedImage? Image { get; init; }
|
|
|
|
public EmbedThumbnail? Thumbnail { get; init; }
|
2022-06-03 08:39:29 +00:00
|
|
|
// public EmbedVideo? Video { get; init; }
|
|
|
|
// public EmbedProvider? Provider { get; init; }
|
2021-11-27 02:10:56 +00:00
|
|
|
public EmbedAuthor? Author { get; init; }
|
|
|
|
public Field[]? Fields { get; init; }
|
|
|
|
|
|
|
|
public record EmbedFooter(
|
|
|
|
string Text,
|
|
|
|
string? IconUrl = null,
|
|
|
|
string? ProxyIconUrl = null
|
|
|
|
);
|
|
|
|
|
|
|
|
public record EmbedImage(
|
|
|
|
string? Url,
|
|
|
|
uint? Width = null,
|
|
|
|
uint? Height = null
|
|
|
|
);
|
|
|
|
|
|
|
|
public record EmbedThumbnail(
|
|
|
|
string? Url,
|
|
|
|
string? ProxyUrl = null,
|
|
|
|
uint? Width = null,
|
|
|
|
uint? Height = null
|
|
|
|
);
|
|
|
|
|
|
|
|
public record EmbedVideo(
|
|
|
|
string? Url,
|
|
|
|
uint? Width = null,
|
|
|
|
uint? Height = null
|
|
|
|
);
|
|
|
|
|
|
|
|
public record EmbedProvider(
|
|
|
|
string? Name,
|
|
|
|
string? Url
|
|
|
|
);
|
|
|
|
|
|
|
|
public record EmbedAuthor(
|
|
|
|
string? Name = null,
|
|
|
|
string? Url = null,
|
|
|
|
string? IconUrl = null,
|
|
|
|
string? ProxyIconUrl = null
|
|
|
|
);
|
|
|
|
|
|
|
|
public record Field(
|
|
|
|
string Name,
|
|
|
|
string Value,
|
|
|
|
bool Inline = false
|
|
|
|
);
|
2020-12-22 12:15:26 +00:00
|
|
|
}
|