public static enum Guild.ExplicitContentLevel extends java.lang.Enum<Guild.ExplicitContentLevel>
Modifier and Type | Method | Description |
---|---|---|
static Guild.ExplicitContentLevel |
fromKey(int key) |
|
java.lang.String |
getDescription() |
Description of this level in the official Discord Client (as of 5th May, 2017)
|
int |
getKey() |
The key for this level
|
static Guild.ExplicitContentLevel |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Guild.ExplicitContentLevel[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Guild.ExplicitContentLevel OFF
public static final Guild.ExplicitContentLevel NO_ROLE
public static final Guild.ExplicitContentLevel ALL
public static final Guild.ExplicitContentLevel UNKNOWN
public static Guild.ExplicitContentLevel[] values()
for (Guild.ExplicitContentLevel c : Guild.ExplicitContentLevel.values()) System.out.println(c);
public static Guild.ExplicitContentLevel 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 java.lang.String getDescription()
public static Guild.ExplicitContentLevel fromKey(int key)