Package net.dv8tion.jda.api.entities
Enum Guild.VerificationLevel
- java.lang.Object
-
- java.lang.Enum<Guild.VerificationLevel>
-
- net.dv8tion.jda.api.entities.Guild.VerificationLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Guild.VerificationLevel>
- Enclosing interface:
- Guild
public static enum Guild.VerificationLevel extends java.lang.Enum<Guild.VerificationLevel>
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
valueOf(java.lang.String name)
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 Detail
-
NONE
public static final Guild.VerificationLevel NONE
-
LOW
public static final Guild.VerificationLevel LOW
-
MEDIUM
public static final Guild.VerificationLevel MEDIUM
-
HIGH
public static final Guild.VerificationLevel HIGH
-
VERY_HIGH
public static final Guild.VerificationLevel VERY_HIGH
-
UNKNOWN
public static final Guild.VerificationLevel UNKNOWN
-
-
Method Detail
-
values
public static Guild.VerificationLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Guild.VerificationLevel c : Guild.VerificationLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Guild.VerificationLevel valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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
@Nonnull public static Guild.VerificationLevel fromKey(int key)
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.
-
-