Package net.dv8tion.jda.api.entities
Enum StageInstance.PrivacyLevel
- All Implemented Interfaces:
Serializable
,Comparable<StageInstance.PrivacyLevel>
- Enclosing interface:
StageInstance
The privacy level for a stage instance.
This indicates from where people can join the stage instance.
-
Enum Constant Summary
Enum ConstantDescriptionThis stage instance can only be accessed by guild membersPlaceholder for future privacy levels, indicates that this version of JDA does not support this privacy level yet -
Method Summary
Modifier and TypeMethodDescriptionstatic StageInstance.PrivacyLevel
fromKey
(int key) Converts the raw API key into the respective enum valueint
getKey()
The raw API key for this privacy levelstatic StageInstance.PrivacyLevel
Returns the enum constant of this type with the specified name.static StageInstance.PrivacyLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Placeholder for future privacy levels, indicates that this version of JDA does not support this privacy level yet -
GUILD_ONLY
This stage instance can only be accessed by guild members
-
-
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 raw API key for this privacy level- Returns:
- The raw API value or
-1
if this isUNKNOWN
-
fromKey
Converts the raw API key into the respective enum value- Parameters:
key
- The API key- Returns:
- The enum value or
UNKNOWN
-