Table of Contents

Class ApplicationCommandRequireSkuEntitlementAttribute

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

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

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
[RequiresFeature(Features.MonetizedApplication)]
public sealed class ApplicationCommandRequireSkuEntitlementAttribute : ApplicationCommandCheckBaseAttribute
Inheritance
ApplicationCommandRequireSkuEntitlementAttribute
Inherited Members

Remarks

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

Constructors

ApplicationCommandRequireSkuEntitlementAttribute(ulong)

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

Properties

SkuId

Gets the sku id requiring an entitlement.

Methods

ExecuteChecksAsync(BaseContext)

Runs checks.