Table of Contents

Class LinkButtonProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class LinkButtonProperties : ICustomizableButtonProperties, IButtonProperties
Inheritance
LinkButtonProperties
Implements
Inherited Members

Constructors

LinkButtonProperties(string, EmojiProperties)

public LinkButtonProperties(string url, EmojiProperties emoji)

Parameters

url string

Url of the button.

emoji EmojiProperties

Emoji that appears on the button.

LinkButtonProperties(string, string)

public LinkButtonProperties(string url, string label)

Parameters

url string

Url of the button.

label string

Text that appears on the button (max 80 characters).

LinkButtonProperties(string, string, EmojiProperties)

public LinkButtonProperties(string url, string label, EmojiProperties emoji)

Parameters

url string

Url of the button.

label string

Text that appears on the button (max 80 characters).

emoji EmojiProperties

Emoji that appears on the button.

Properties

ComponentType

Type of the component.

[JsonPropertyName("type")]
public ComponentType ComponentType { get; }

Property Value

ComponentType

Disabled

Whether the button is disabled.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("disabled")]
public bool Disabled { get; set; }

Property Value

bool

Emoji

Emoji that appears on the button.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("emoji")]
public EmojiProperties? Emoji { get; set; }

Property Value

EmojiProperties

Label

Text that appears on the button (max 80 characters).

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("label")]
public string? Label { get; set; }

Property Value

string

Style

Style of the button.

[JsonPropertyName("style")]
public ButtonStyle Style { get; }

Property Value

ButtonStyle

Url

Url of the button.

[JsonPropertyName("url")]
public string Url { get; set; }

Property Value

string

Methods

WithDisabled(bool)

public LinkButtonProperties WithDisabled(bool disabled = true)

Parameters

disabled bool

Returns

LinkButtonProperties

WithEmoji(EmojiProperties?)

public LinkButtonProperties WithEmoji(EmojiProperties? emoji)

Parameters

emoji EmojiProperties

Returns

LinkButtonProperties

WithLabel(string?)

public LinkButtonProperties WithLabel(string? label)

Parameters

label string

Returns

LinkButtonProperties

WithUrl(string)

Url of the button.

public LinkButtonProperties WithUrl(string url)

Parameters

url string

Returns

LinkButtonProperties