Class EmbedAuthorBuilder
Represents a builder class for a author field.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class EmbedAuthorBuilder
Properties​
Name​
Gets or sets the author name.
View Source​
Declaration
public string Name { get; set; }
Url​
Gets or sets the URL of the author field.
View Source​
Declaration
public string Url { get; set; }
IconUrl​
Gets or sets the icon URL of the author field.
View Source​
Declaration
public string IconUrl { get; set; }
Fields​
MaxAuthorNameLength​
Gets the maximum author name length allowed by Discord.
View Source​
Declaration
public const int MaxAuthorNameLength = 256
Methods​
WithName(String)​
Sets the name of the author field.
View Source​
Declaration
public EmbedAuthorBuilder WithName(string name)
Returns​
Discord.EmbedAuthorBuilder: The current builder.
Parameters​
Type | Name | Description |
---|---|---|
System.String | name | The name of the author field. |
WithUrl(String)​
Sets the URL of the author field.
View Source​
Declaration
public EmbedAuthorBuilder WithUrl(string url)
Returns​
Discord.EmbedAuthorBuilder: The current builder.
Parameters​
Type | Name | Description |
---|---|---|
System.String | url | The URL of the author field. |
WithIconUrl(String)​
Sets the icon URL of the author field.
View Source​
Declaration
public EmbedAuthorBuilder WithIconUrl(string iconUrl)
Returns​
Discord.EmbedAuthorBuilder: The current builder.
Parameters​
Type | Name | Description |
---|---|---|
System.String | iconUrl | The icon URL of the author field. |
Build()​
Builds the author field to be used.
View Source​
Declaration
public EmbedAuthor Build()
Returns​
Discord.EmbedAuthor: The built author field.