Table of Contents

Class ApplicationCommandRequirePremiumAttribute

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)]
[DiscordDeprecated]
public sealed class ApplicationCommandRequirePremiumAttribute : ApplicationCommandCheckBaseAttribute
Inheritance
ApplicationCommandRequirePremiumAttribute
Inherited Members

Constructors

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"/>.

ApplicationCommandRequirePremiumAttribute(ulong)

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

Properties

EntitlementId

Gets the entitlement id required by this attribute.

Methods

ExecuteChecksAsync(BaseContext)

Runs checks.