Class EmbedProperties
public class EmbedProperties
- Inheritance
-
EmbedProperties
- Inherited Members
Constructors
EmbedProperties()
public EmbedProperties()
Properties
Author
Author of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("author")]
public EmbedAuthorProperties? Author { get; set; }
Property Value
Color
Color of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("color")]
public Color Color { get; set; }
Property Value
Description
Description of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
Fields
Fields of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("fields")]
public IEnumerable<EmbedFieldProperties>? Fields { get; set; }
Property Value
Footer
Footer of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("footer")]
public EmbedFooterProperties? Footer { get; set; }
Property Value
Image
Image of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("image")]
public EmbedImageProperties? Image { get; set; }
Property Value
Thumbnail
Thumbnail of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("thumbnail")]
public EmbedThumbnailProperties? Thumbnail { get; set; }
Property Value
Timestamp
Timestamp of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("timestamp")]
public DateTimeOffset? Timestamp { get; set; }
Property Value
Title
Title of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("title")]
public string? Title { get; set; }
Property Value
Url
Url of the embed.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("url")]
public string? Url { get; set; }
Property Value
Methods
AddFields(params EmbedFieldProperties[])
Fields of the embed.
public EmbedProperties AddFields(params EmbedFieldProperties[] fields)
Parameters
fields
EmbedFieldProperties[]
Returns
AddFields(IEnumerable<EmbedFieldProperties>)
Fields of the embed.
public EmbedProperties AddFields(IEnumerable<EmbedFieldProperties> fields)
Parameters
fields
IEnumerable<EmbedFieldProperties>
Returns
WithAuthor(EmbedAuthorProperties?)
Author of the embed.
public EmbedProperties WithAuthor(EmbedAuthorProperties? author)
Parameters
author
EmbedAuthorProperties
Returns
WithColor(Color)
Color of the embed.
public EmbedProperties WithColor(Color color)
Parameters
color
Color
Returns
WithDescription(string?)
Description of the embed.
public EmbedProperties WithDescription(string? description)
Parameters
description
string
Returns
WithFields(IEnumerable<EmbedFieldProperties>?)
Fields of the embed.
public EmbedProperties WithFields(IEnumerable<EmbedFieldProperties>? fields)
Parameters
fields
IEnumerable<EmbedFieldProperties>
Returns
WithFooter(EmbedFooterProperties?)
Footer of the embed.
public EmbedProperties WithFooter(EmbedFooterProperties? footer)
Parameters
footer
EmbedFooterProperties
Returns
WithImage(EmbedImageProperties?)
Image of the embed.
public EmbedProperties WithImage(EmbedImageProperties? image)
Parameters
image
EmbedImageProperties
Returns
WithThumbnail(EmbedThumbnailProperties?)
Thumbnail of the embed.
public EmbedProperties WithThumbnail(EmbedThumbnailProperties? thumbnail)
Parameters
thumbnail
EmbedThumbnailProperties
Returns
WithTimestamp(DateTimeOffset?)
Timestamp of the embed.
public EmbedProperties WithTimestamp(DateTimeOffset? timestamp)
Parameters
timestamp
DateTimeOffset?
Returns
WithTitle(string?)
Title of the embed.
public EmbedProperties WithTitle(string? title)
Parameters
title
string
Returns
WithUrl(string?)
Url of the embed.
public EmbedProperties WithUrl(string? url)
Parameters
url
string