Class DiscordLinkButtonComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a link button. Clicking a link button does not send an interaction.
public class DiscordLinkButtonComponent : DiscordComponent
- Inheritance
-
DiscordLinkButtonComponent
- Inherited Members
Constructors
- DiscordLinkButtonComponent()
Initializes a new instance of the DiscordLinkButtonComponent class.
- DiscordLinkButtonComponent(string, string, bool, DiscordComponentEmoji)
Constructs a new DiscordLinkButtonComponent. This type of button does not send back and interaction when pressed.
Properties
- Disabled
Whether this button can be pressed.
- Emoji
The emoji to add to the button. Can be used in conjunction with a label, or as standalone. Must be added if label is not specified.
- Url
The url to open when pressing this button.
Methods
- Disable()
Disables this component.
- Enable()
Enables this component if it was disabled before.