public static enum Guild.ContentFilterLevel extends Enum<Guild.ContentFilterLevel>
Enum Constant and Description |
---|
ALL_MEMBERS
Scan messages sent by all members.
|
DISABLED
Don't scan any messages.
|
MEMBERS_WITHOUT_ROLES
Scan messages from members without a role.
|
UNKNOWN
Unknown content filter level.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the underlying value as represented by Discord.
|
static Guild.ContentFilterLevel |
of(int value)
Gets the content filter level of the guild.
|
static Guild.ContentFilterLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Guild.ContentFilterLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Guild.ContentFilterLevel UNKNOWN
public static final Guild.ContentFilterLevel DISABLED
public static final Guild.ContentFilterLevel MEMBERS_WITHOUT_ROLES
public static final Guild.ContentFilterLevel ALL_MEMBERS
public static Guild.ContentFilterLevel[] values()
for (Guild.ContentFilterLevel c : Guild.ContentFilterLevel.values()) System.out.println(c);
public static Guild.ContentFilterLevel 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.ContentFilterLevel of(int value)
getValue()
from the
returned enum will equal (==
) the supplied value
.value
- The underlying value as represented by Discord.