Enum SKUFlag
- All Implemented Interfaces:
Serializable, Comparable<SKUFlag>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSKU is available for purchaseRecurring SKU that can be purchased by a user and applied to a single server.Recurring SKU purchased by a user for themselves. -
Method Summary
Modifier and TypeMethodDescriptiongetFlags(int flags) Converts a bitmask representation of SKU flags into itsEnumSet.intThe bit offset used to identify this flag.intgetRaw()The raw value used by Discord for this flag.static SKUFlagReturns the enum constant of this type with the specified name.static SKUFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
SKU is available for purchase -
GUILD_SUBSCRIPTION
Recurring SKU that can be purchased by a user and applied to a single server. Grants access to every user in that server. -
USER_SUBSCRIPTION
Recurring SKU purchased by a user for themselves. Grants access to the purchasing user in every server.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getRaw
public int getRaw()The raw value used by Discord for this flag.- Returns:
- The raw value
-
getOffset
public int getOffset()The bit offset used to identify this flag.- Returns:
- The bit offset
-
getFlags
-