Interface SKU
- All Superinterfaces:
ISnowflake, SkuSnowflake
SKUs (stock-keeping units) in Discord represent premium offerings that can be made available to application users or guilds.
-
Method Summary
Modifier and TypeMethodDescriptiongetFlags()Flags can be used to differentiate user and server subscriptionsgetName()Customer-facing name of your premium offeringgetSlug()System-generated URL slug based on the SKU's namegetType()Type of the SKUdefault booleanChecks whether this SKU is available.default booleanChecks whether the SKU is available to be purchased for a guild.default booleanChecks whether the SKU is available to be purchased for a user.Methods inherited from interface ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getType
-
getName
-
getSlug
-
getFlags
-
isGuildSKU
default boolean isGuildSKU()Checks whether the SKU is available to be purchased for a guild.- Returns:
- true if it's for guilds
-
isUserSKU
default boolean isUserSKU()Checks whether the SKU is available to be purchased for a user.- Returns:
- true if it's for users
-
isAvailable
default boolean isAvailable()Checks whether this SKU is available.- Returns:
- true if available
-