Table of Contents

Constructor DiscordLinkButtonComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordLinkButtonComponent(string, string, bool, DiscordComponentEmoji)

Constructs a new DiscordLinkButtonComponent. This type of button does not send back and interaction when pressed.

public DiscordLinkButtonComponent(string url, string label, bool disabled = false, DiscordComponentEmoji emoji = null)

Parameters

url string

The url to set the button to.

label string

The text to display on the button. Can be left blank if emoji is set.

disabled bool

Whether or not this button can be pressed.

emoji DiscordComponentEmoji

The emoji to set with this button. This is required if label is null or empty.