Package net.dv8tion.jda.api.entities
Interface Entitlement
- All Superinterfaces:
ISnowflake
Represents a user or guild that has access to a premium offering in your application.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Represents the type of this Entitlement -
Method Summary
Modifier and TypeMethodDescriptiondefault String
The id of the parent application of thisEntitlement
long
The id of the parent application of thisEntitlement
default String
The guild id that is granted access to theEntitlement
s SKUlong
The guild id that is granted access to theEntitlement
s SKUdefault String
getSkuId()
The id of the SKU related to thisEntitlement
long
The id of the SKU related to thisEntitlement
Date at which theEntitlement
is no longer valid.The start date at which theEntitlement
is valid.getType()
The type of the Entitlement
The only possible type of Entitlement currently isEntitlement.EntitlementType.APPLICATION_SUBSCRIPTION
Discord doesn't currently support other types for entitlements.default String
The id of the user that purchased theEntitlement
long
The id of the user that purchased theEntitlement
boolean
Whether theEntitlement
has been deleted or not.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getSkuIdLong
long getSkuIdLong()The id of the SKU related to thisEntitlement
- Returns:
- The id of the SKU related to this
Entitlement
-
getSkuId
The id of the SKU related to thisEntitlement
- Returns:
- The id of the SKU related to this
Entitlement
-
getApplicationIdLong
long getApplicationIdLong()The id of the parent application of thisEntitlement
- Returns:
- The id of the parent application of this
Entitlement
-
getApplicationId
The id of the parent application of thisEntitlement
- Returns:
- The id of the parent application of this
Entitlement
-
getUserIdLong
long getUserIdLong()The id of the user that purchased theEntitlement
- Returns:
- The id of the user that purchased the
Entitlement
-
getUserId
The id of the user that purchased theEntitlement
- Returns:
- The id of the user that purchased the
Entitlement
-
getGuildIdLong
long getGuildIdLong()The guild id that is granted access to theEntitlement
s SKU- Returns:
- The id of the guild that purchased the
Entitlement
or 0 if this is not a guild subscription
-
getGuildId
The guild id that is granted access to theEntitlement
s SKU- Returns:
- The id of the guild that purchased the
Entitlement
ornull
if this is not a guild subscription
-
getType
The type of the Entitlement
The only possible type of Entitlement currently isEntitlement.EntitlementType.APPLICATION_SUBSCRIPTION
Discord doesn't currently support other types for entitlements.- Returns:
- the
Entitlement
type
-
isDeleted
boolean isDeleted()Whether theEntitlement
has been deleted or not.- Returns:
- True if the
Entitlement
was deleted, False otherwise - See Also:
-
getTimeStarting
The start date at which theEntitlement
is valid.- Returns:
- Start date at which the
Entitlement
is valid. Not present when using test entitlements.
-
getTimeEnding
Date at which theEntitlement
is no longer valid.- Returns:
- Date at which the
Entitlement
is no longer valid. Not present when using test entitlements.
-