Skip to main content

Class EmbedFooterBuilder

Represents a builder class for an embed footer.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class EmbedFooterBuilder

Properties​

Text​

Gets or sets the footer text.

View Source​
Declaration
public string Text { get; set; }

IconUrl​

Gets or sets the icon URL of the footer field.

View Source​
Declaration
public string IconUrl { get; set; }

Fields​

MaxFooterTextLength​

Gets the maximum footer length allowed by Discord.

View Source​
Declaration
public const int MaxFooterTextLength = 2048

Methods​

WithText(String)​

Sets the name of the footer field.

View Source​
Declaration
public EmbedFooterBuilder WithText(string text)
Returns​

Discord.EmbedFooterBuilder: The current builder.

Parameters​
TypeNameDescription
System.StringtextThe text of the footer field.

WithIconUrl(String)​

Sets the icon URL of the footer field.

View Source​
Declaration
public EmbedFooterBuilder WithIconUrl(string iconUrl)
Returns​

Discord.EmbedFooterBuilder: The current builder.

Parameters​
TypeNameDescription
System.StringiconUrlThe icon URL of the footer field.

Build()​

Builds the footer field to be used.

View Source​
Declaration
public EmbedFooter Build()
Returns​

Discord.EmbedFooter