Entitlement class
Premium access a user or guild has for an application.
- Inheritance
Properties
- application → PartialApplication
-
The application this entitlement is for.
no setter
- applicationId → Snowflake
-
The ID of the Application this Entitlement is for.
final
- endsAt → DateTime?
-
The time at which this entitlement expires.
final
- guild → PartialGuild?
-
The guild this entitlement is for.
no setter
- guildId → Snowflake?
-
The ID of the Guild this Entitlement is for.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
The id of this entity.
finalinherited
- isConsumed → bool
-
Whether this entitlement is consumed.
final
- manager → EntitlementManager
-
The manager for this entity.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skuId → Snowflake
-
The ID of the SKU.
final
- startsAt → DateTime?
-
The time at which this entitlement becomes valid.
final
- type → EntitlementType
-
The type of this entitlement.
final
- user → PartialUser?
-
The user this entitlement is for.
no setter
- userId → Snowflake?
-
The ID of the User this Entitlement is for.
final
Methods
-
defaultToString(
) → String -
Same as toString, but only called when dart:mirrors is not available.
inherited
-
fetch(
) → Future< Entitlement> -
Fetch this entity from the API.
inherited
-
get(
) → Future< Entitlement> -
If this entity exists in the manager's cache, return the cached instance. Otherwise, fetch
this entity and return it.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited