Table of Contents

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
object
EmbedAuthorBuilder

Properties

IconUrl

Gets or sets the icon URL of the author.

public string? IconUrl { get; set; }

Property Value

string

MaxAuthorNameLength

Maximum length of the author name.

public static int MaxAuthorNameLength { get; }

Property Value

int

Name

Gets or sets the name of the author.

public string? Name { get; set; }

Property Value

string

Exceptions

ArgumentException

Name length exceeds MaxAuthorNameLength.

Url

Gets or sets the URL of the author.

public string? Url { get; set; }

Property Value

string

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

iconUrl string

The icon URL to set.

Returns

EmbedAuthorBuilder

The current builder.

WithName(string)

Sets the name of the author.

public EmbedAuthorBuilder WithName(string name)

Parameters

name string

The name to set.

Returns

EmbedAuthorBuilder

The current builder.

WithUrl(string)

Sets the URL of the author.

public EmbedAuthorBuilder WithUrl(string url)

Parameters

url string

The URL to set.

Returns

EmbedAuthorBuilder

The current builder.