Class EmbedAuthorProperties
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
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
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
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
iconUrlstring
Returns
WithName(string?)
The name of the author, displayed next to the icon if one is specified.
public EmbedAuthorProperties WithName(string? name)
Parameters
namestring
Returns
WithUrl(string?)
When set, turns the name into a clickable link, pointing to the specified URL.
public EmbedAuthorProperties WithUrl(string? url)
Parameters
urlstring