Constructor DiscordLinkButtonComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.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
stringThe url to set the button to.
label
stringThe text to display on the button. Can be left blank if
emoji
is set.disabled
boolWhether or not this button can be pressed.
emoji
DiscordComponentEmojiThe emoji to set with this button. This is required if
label
is null or empty.
DiscordLinkButtonComponent()
Initializes a new instance of the DiscordLinkButtonComponent class.
public DiscordLinkButtonComponent()