public static enum Guild.MFALevel extends java.lang.Enum<Guild.MFALevel>
None -> There is no MFA level restriction on administrator functions in this guild.
Two_Factor_Auth -> Users must have 2FA enabled on their account to perform administrator functions.
Enum Constant | Description |
---|---|
NONE |
|
TWO_FACTOR_AUTH |
|
UNKNOWN |
Modifier and Type | Method | Description |
---|---|---|
static Guild.MFALevel |
fromKey(int key) |
Used to retrieve a
MFALevel based
on the Discord id key. |
int |
getKey() |
The Discord id key used to represent this MFALevel.
|
static Guild.MFALevel |
valueOf(java.lang.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 NONE
public static final Guild.MFALevel TWO_FACTOR_AUTH
public static final Guild.MFALevel UNKNOWN
public static Guild.MFALevel[] values()
for (Guild.MFALevel c : Guild.MFALevel.values()) System.out.println(c);
public static Guild.MFALevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getKey()
public static Guild.MFALevel fromKey(int key)
MFALevel
based
on the Discord id key.key
- The Discord id key representing the requested MFALevel.MFALevel.UNKNOWN
if the key is not recognized.