Class EmbedAuthorBuilder
A builder for creating embed authors with validation. Based on Fluxer.Net's EmbedAuthorBuilder implementation.
public class EmbedAuthorBuilder
- Inheritance
-
objectEmbedAuthorBuilder
Properties
IconUrl
Gets or sets the icon URL of the author.
public string? IconUrl { get; set; }
Property Value
MaxAuthorNameLength
Maximum length of the author name.
public static int MaxAuthorNameLength { get; }
Property Value
Name
Gets or sets the name of the author.
public string? Name { get; set; }
Property Value
Exceptions
- ArgumentException
Name length exceeds MaxAuthorNameLength.
Url
Gets or sets the URL of the author.
public string? Url { get; set; }
Property Value
Methods
Build()
Builds the embed author.
public EmbedAuthorRequest Build()
Returns
- EmbedAuthorRequest
A new Fluxer.Net.EmbedAuthorJson object.
WithIconUrl(string)
Sets the icon URL of the author.
public EmbedAuthorBuilder WithIconUrl(string iconUrl)
Parameters
iconUrlstringThe icon URL to set.
Returns
- EmbedAuthorBuilder
The current builder.
WithName(string)
Sets the name of the author.
public EmbedAuthorBuilder WithName(string name)
Parameters
namestringThe name to set.
Returns
- EmbedAuthorBuilder
The current builder.
WithUrl(string)
Sets the URL of the author.
public EmbedAuthorBuilder WithUrl(string url)
Parameters
urlstringThe URL to set.
Returns
- EmbedAuthorBuilder
The current builder.