Class EmbedFooterBuilder
A builder for creating embed footers with validation. Based on Fluxer.Net's EmbedFooterBuilder implementation.
public class EmbedFooterBuilder
- Inheritance
-
objectEmbedFooterBuilder
Properties
IconUrl
Gets or sets the icon URL of the footer.
public string? IconUrl { get; set; }
Property Value
MaxFooterTextLength
Maximum length of the footer text.
public static int MaxFooterTextLength { get; }
Property Value
Text
Gets or sets the text of the footer.
public string? Text { get; set; }
Property Value
Exceptions
- ArgumentException
Text length exceeds MaxFooterTextLength.
Methods
Build()
Builds the embed footer.
public EmbedFooterRequest Build()
Returns
- EmbedFooterRequest
A new Fluxer.Net.EmbedFooterJson object.
WithIconUrl(string)
Sets the icon URL of the footer.
public EmbedFooterBuilder WithIconUrl(string iconUrl)
Parameters
iconUrlstringThe icon URL to set.
Returns
- EmbedFooterBuilder
The current builder.
WithText(string)
Sets the text of the footer.
public EmbedFooterBuilder WithText(string text)
Parameters
textstringThe text to set.
Returns
- EmbedFooterBuilder
The current builder.