EntitlementType enum

The type of an Entitlement.

Inheritance

Constructors

EntitlementType.parse(int value)
factory

Values

purchase → const EntitlementType

Entitlement was purchased by user.

EntitlementType._(1)
premiumSubscription → const EntitlementType

Entitlement was granted by Discord Nitro subscription.

EntitlementType._(2)
developerGift → const EntitlementType

Entitlement was gifted by developer.

EntitlementType._(3)
testModePurchase → const EntitlementType

Entitlement was purchased by a dev in application test mode.

EntitlementType._(4)
freePurchase → const EntitlementType

Entitlement was granted when the SKU was free.

EntitlementType._(5)
userGift → const EntitlementType

Entitlement was gifted by another user.

EntitlementType._(6)
premiumPurchase → const EntitlementType

Entitlement was claimed by user for free as a Nitro Subscriber.

EntitlementType._(7)
applicationSubscription → const EntitlementType

Entitlement was purchased as an app subscription.

EntitlementType._(8)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<EntitlementType>
A constant List of the values in this enum, in order of their declaration.