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
urlstringThe url to set the button to.
labelstringThe text to display on the button. Can be left blank if
emojiis set.disabledboolWhether or not this button can be pressed.
emojiDiscordComponentEmojiThe emoji to set with this button. This is required if
labelis null or empty.