EntitlementType enum
The type of an Entitlement.
Constructors
- EntitlementType.parse(int value)
-
factory
Values
- purchase → const EntitlementType
-
Entitlement was purchased by user.
EntitlementType._(1)
-
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)
-
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
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.