Table of Contents

Class EmbedAuthorProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll

Contains information about the author of an embed, used to render the author block.

public class EmbedAuthorProperties
Inheritance
EmbedAuthorProperties
Inherited Members

Constructors

EmbedAuthorProperties()

public EmbedAuthorProperties()

Properties

IconUrl

Points to an image, which is displayed in a small circular format to the left of the name.

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

Property Value

string

Name

The name of the author, displayed next to the icon if one is specified.

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

Property Value

string

Url

When set, turns the name into a clickable link, pointing to the specified URL.

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

Property Value

string

Methods

WithIconUrl(string?)

Points to an image, which is displayed in a small circular format to the left of the name.

public EmbedAuthorProperties WithIconUrl(string? iconUrl)

Parameters

iconUrl string

Returns

EmbedAuthorProperties

WithName(string?)

The name of the author, displayed next to the icon if one is specified.

public EmbedAuthorProperties WithName(string? name)

Parameters

name string

Returns

EmbedAuthorProperties

WithUrl(string?)

When set, turns the name into a clickable link, pointing to the specified URL.

public EmbedAuthorProperties WithUrl(string? url)

Parameters

url string

Returns

EmbedAuthorProperties