Table of Contents

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 : DiscordBaseButtonComponent
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

SkuId

The premium sku to open when pressing this button.

Methods

Disable()

Disables this component.

Enable()

Enables this component if it was disabled before.

SetState(bool)

Enables or disables this component.

WithId(int)

Assigns a unique id to this component.