Package discord4j.core.object.entity
Enum Class Guild.ContentFilterLevel
- All Implemented Interfaces:
Serializable
,Comparable<Guild.ContentFilterLevel>
,Constable
- Enclosing class:
- Guild
Automatically scan and delete messages sent in the server that contain explicit content.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionScan messages sent by all members.Don't scan any messages.Scan messages from members without a role.Unknown content filter level. -
Method Summary
Modifier and TypeMethodDescriptionint
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
Returns the enum constant of this class with the specified name.static Guild.ContentFilterLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown content filter level. -
DISABLED
Don't scan any messages. -
MEMBERS_WITHOUT_ROLES
Scan messages from members without a role. -
ALL_MEMBERS
Scan messages sent by all members.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Gets the underlying value as represented by Discord.- Returns:
- The underlying value as represented by Discord.
-
of
Gets the content filter level of the guild. It is guaranteed that invokinggetValue()
from the returned enum will equal (==
) the suppliedvalue
.- Parameters:
value
- The underlying value as represented by Discord.- Returns:
- The content filter level of the guild.
-