Package net.dv8tion.jda.api.entities
Enum Guild.BoostTier
- All Implemented Interfaces:
Serializable
,Comparable<Guild.BoostTier>
- Enclosing interface:
Guild
The boost tier for this guild.
Each tier unlocks new perks for a guild that can be seen in the
Each tier unlocks new perks for a guild that can be seen in the
features
.- Since:
- 4.0.0
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Guild.BoostTier
fromKey
(int key) Resolves the provided API key to the boost tier.int
getKey()
The API key used to represent this tier, identical to the ordinal.int
The maximum bitrate that can be applied to voice channels when this tier is reached.int
The maximum amount of custom emojis a guild can have when this tier is reached.long
The maximum size for files that can be uploaded to this Guild.static Guild.BoostTier
Returns the enum constant of this type with the specified name.static Guild.BoostTier[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
The default tier.
Unlocked at 0 boosters. -
TIER_1
The first tier.
Unlocked at 2 boosters. -
TIER_2
The second tier.
Unlocked at 7 boosters. -
TIER_3
The third tier.
Unlocked at 14 boosters. -
UNKNOWN
Placeholder for future tiers.
-
-
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
-
getKey
public int getKey()The API key used to represent this tier, identical to the ordinal.- Returns:
- The key
-
getMaxBitrate
public int getMaxBitrate()The maximum bitrate that can be applied to voice channels when this tier is reached.- Returns:
- The maximum bitrate
- See Also:
-
getMaxEmojis
public int getMaxEmojis()The maximum amount of custom emojis a guild can have when this tier is reached.- Returns:
- The maximum emojis
- See Also:
-
getMaxFileSize
public long getMaxFileSize()The maximum size for files that can be uploaded to this Guild.- Returns:
- The maximum file size of this Guild
- See Also:
-
fromKey
Resolves the provided API key to the boost tier.- Parameters:
key
- The API key- Returns:
- The BoostTier or
UNKNOWN
-