Table of Contents

Constructor DiscordPremiumButtonComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DiscordPremiumButtonComponent(ulong, bool)

Constructs a new DiscordPremiumButtonComponent. This type of button does not send back and interaction when pressed.

[RequiresFeature(Features.MonetizedApplication)]
public DiscordPremiumButtonComponent(ulong skuId, bool disabled = false)

Parameters

skuId ulong

The sku id to set the button to.

disabled bool

Whether or not this button can be pressed.

DiscordPremiumButtonComponent()

Initializes a new instance of the DiscordPremiumButtonComponent class.

public DiscordPremiumButtonComponent()