Enum 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 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 name
        java.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 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.