Class EmbedAuthorBuilder
- Namespace
- Fluxer.Net
- Assembly
- Fluxer.Net.dll
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
iconUrlstring
Returns
WithName(string)
Sets the name of the author.
public EmbedAuthorBuilder WithName(string name)
Parameters
namestring
Returns
WithUrl(string)
Sets the URL of the author.
public EmbedAuthorBuilder WithUrl(string url)
Parameters
urlstring