public static enum Guild.MfaLevel extends Enum<Guild.MfaLevel>
Enum Constant and Description |
---|
ELEVATED
Enabled 2FA requirement.
|
NONE
Disabled 2FA requirement.
|
UNKNOWN
Unknown MFA level.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the underlying value as represented by Discord.
|
static Guild.MfaLevel |
of(int value)
Gets the multi-factor authentication level of the guild.
|
static Guild.MfaLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Guild.MfaLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Guild.MfaLevel UNKNOWN
public static final Guild.MfaLevel NONE
public static final Guild.MfaLevel ELEVATED
public static Guild.MfaLevel[] values()
for (Guild.MfaLevel c : Guild.MfaLevel.values()) System.out.println(c);
public static Guild.MfaLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static Guild.MfaLevel of(int value)
getValue()
from the returned enum will equal (==
) the supplied value
.value
- The underlying value as represented by Discord.