Class DiscordPremiumButtonComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
Represents a premium button. Clicking a premium button does not send an interaction.
Requires your app to have monitization enabled.
public class DiscordPremiumButtonComponent : DiscordComponent
- Inheritance
-
DiscordPremiumButtonComponent
- Inherited Members
Constructors
- DiscordPremiumButtonComponent()
Initializes a new instance of the DiscordPremiumButtonComponent class.
- DiscordPremiumButtonComponent(ulong, bool)
Constructs a new DiscordPremiumButtonComponent. This type of button does not send back and interaction when pressed.
Properties
- Disabled
Whether this button can be pressed.
- SkuId
The premium sku to open when pressing this button.
Methods
- Disable()
Disables this component.
- Enable()
Enables this component if it was disabled before.