Package net.dv8tion.jda.api.entities
Enum Guild.VerificationLevel
- All Implemented Interfaces:
Serializable
,Comparable<Guild.VerificationLevel>
- Enclosing interface:
- Guild
Represents the Verification-Level of the Guild.
The Verification-Level determines what requirement you have to meet to be able to speak in this Guild.
None -> everyone can talk.
Low -> verified email required.
Medium -> you have to be member of discord for at least 5min.
High -> you have to be member of this guild for at least 10min.
Very High -> you must have a verified phone on your discord account.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Guild.VerificationLevel
fromKey
(int key) Used to retrieve aVerificationLevel
based on the Discord id key.int
getKey()
The Discord id key for this Verification Level.static Guild.VerificationLevel
Returns the enum constant of this type with the specified name.static Guild.VerificationLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
LOW
-
MEDIUM
-
HIGH
-
VERY_HIGH
-
UNKNOWN
-
-
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 Discord id key for this Verification Level.- Returns:
- Integer id key for this VerificationLevel.
-
fromKey
Used to retrieve aVerificationLevel
based on the Discord id key.- Parameters:
key
- The Discord id key representing the requested VerificationLevel.- Returns:
- The VerificationLevel related to the provided key, or
VerificationLevel.UNKNOWN
if the key is not recognized.
-