Table of Contents

Class EmbedProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
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

EmbedAuthorProperties

Color

Color of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("color")]
public Color Color { get; set; }

Property Value

Color

Description

Description of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("description")]
public string? Description { get; set; }

Property Value

string

Fields

Fields of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("fields")]
public IEnumerable<EmbedFieldProperties>? Fields { get; set; }

Property Value

IEnumerable<EmbedFieldProperties>

Footer of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("footer")]
public EmbedFooterProperties? Footer { get; set; }

Property Value

EmbedFooterProperties

Image

Image of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("image")]
public EmbedImageProperties? Image { get; set; }

Property Value

EmbedImageProperties

Thumbnail

Thumbnail of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("thumbnail")]
public EmbedThumbnailProperties? Thumbnail { get; set; }

Property Value

EmbedThumbnailProperties

Timestamp

Timestamp of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("timestamp")]
public DateTimeOffset? Timestamp { get; set; }

Property Value

DateTimeOffset?

Title

Title of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("title")]
public string? Title { get; set; }

Property Value

string

Url

Url of the embed.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("url")]
public string? Url { get; set; }

Property Value

string

Methods

AddFields(params EmbedFieldProperties[])

Fields of the embed.

public EmbedProperties AddFields(params EmbedFieldProperties[] fields)

Parameters

fields EmbedFieldProperties[]

Returns

EmbedProperties

AddFields(IEnumerable<EmbedFieldProperties>)

Fields of the embed.

public EmbedProperties AddFields(IEnumerable<EmbedFieldProperties> fields)

Parameters

fields IEnumerable<EmbedFieldProperties>

Returns

EmbedProperties

WithAuthor(EmbedAuthorProperties?)

Author of the embed.

public EmbedProperties WithAuthor(EmbedAuthorProperties? author)

Parameters

author EmbedAuthorProperties

Returns

EmbedProperties

WithColor(Color)

Color of the embed.

public EmbedProperties WithColor(Color color)

Parameters

color Color

Returns

EmbedProperties

WithDescription(string?)

Description of the embed.

public EmbedProperties WithDescription(string? description)

Parameters

description string

Returns

EmbedProperties

WithFields(IEnumerable<EmbedFieldProperties>?)

Fields of the embed.

public EmbedProperties WithFields(IEnumerable<EmbedFieldProperties>? fields)

Parameters

fields IEnumerable<EmbedFieldProperties>

Returns

EmbedProperties

WithFooter(EmbedFooterProperties?)

Footer of the embed.

public EmbedProperties WithFooter(EmbedFooterProperties? footer)

Parameters

footer EmbedFooterProperties

Returns

EmbedProperties

WithImage(EmbedImageProperties?)

Image of the embed.

public EmbedProperties WithImage(EmbedImageProperties? image)

Parameters

image EmbedImageProperties

Returns

EmbedProperties

WithThumbnail(EmbedThumbnailProperties?)

Thumbnail of the embed.

public EmbedProperties WithThumbnail(EmbedThumbnailProperties? thumbnail)

Parameters

thumbnail EmbedThumbnailProperties

Returns

EmbedProperties

WithTimestamp(DateTimeOffset?)

Timestamp of the embed.

public EmbedProperties WithTimestamp(DateTimeOffset? timestamp)

Parameters

timestamp DateTimeOffset?

Returns

EmbedProperties

WithTitle(string?)

Title of the embed.

public EmbedProperties WithTitle(string? title)

Parameters

title string

Returns

EmbedProperties

WithUrl(string?)

Url of the embed.

public EmbedProperties WithUrl(string? url)

Parameters

url string

Returns

EmbedProperties