Table of Contents

Constructor ApplicationCommandRequirePremiumAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

ApplicationCommandRequirePremiumAttribute(ulong)

Defines that usage of this command is restricted to users with a specified entitlement.

[RequiresFeature(Features.MonetizedApplication)]
public ApplicationCommandRequirePremiumAttribute(ulong entitlementId)

Parameters

entitlementId ulong

Entitlement id required to execute this command.

ApplicationCommandRequirePremiumAttribute()

Defines that usage of this command is restricted to users with a specified entitlement.

Use this attribute if you set SkuId or AutoFetchSkuIds in your <see cref="DiscordConfiguration"/>.

[RequiresFeature(Features.MonetizedApplication)]
public ApplicationCommandRequirePremiumAttribute()