Enum Guild.VerificationLevel

java.lang.Object
java.lang.Enum<Guild.VerificationLevel>
net.dv8tion.jda.api.entities.Guild.VerificationLevel
All Implemented Interfaces:
Serializable, Comparable<Guild.VerificationLevel>
Enclosing interface:
Guild

public static enum Guild.VerificationLevel extends 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.

  • Enum Constant Details

  • Method Details

    • values

      public static Guild.VerificationLevel[] 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

      public static Guild.VerificationLevel valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      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 a VerificationLevel 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.