Package discord4j.core.object.automod
Enum AutoModRuleTriggerMetaData.Preset
- java.lang.Object
-
- java.lang.Enum<AutoModRuleTriggerMetaData.Preset>
-
- discord4j.core.object.automod.AutoModRuleTriggerMetaData.Preset
-
- All Implemented Interfaces:
Serializable
,Comparable<AutoModRuleTriggerMetaData.Preset>
- Enclosing class:
- AutoModRuleTriggerMetaData
public static enum AutoModRuleTriggerMetaData.Preset extends Enum<AutoModRuleTriggerMetaData.Preset>
Represents a preset in the AutoModMetaData.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROFANITY
Words that may be considered forms of swearing or cursing.SEXUAL_CONTENT
Words that refer to sexually explicit behavior or activity.SLURS
Personal insults or words that may be considered hate speech.UNKNOWN
Unknown type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Gets the underlying value as represented by Discord.static AutoModRuleTriggerMetaData.Preset
of(int value)
Gets the type of message.static AutoModRuleTriggerMetaData.Preset
valueOf(String name)
Returns the enum constant of this type with the specified name.static AutoModRuleTriggerMetaData.Preset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AutoModRuleTriggerMetaData.Preset UNKNOWN
Unknown type.
-
PROFANITY
public static final AutoModRuleTriggerMetaData.Preset PROFANITY
Words that may be considered forms of swearing or cursing.
-
SEXUAL_CONTENT
public static final AutoModRuleTriggerMetaData.Preset SEXUAL_CONTENT
Words that refer to sexually explicit behavior or activity.
-
SLURS
public static final AutoModRuleTriggerMetaData.Preset SLURS
Personal insults or words that may be considered hate speech.
-
-
Method Detail
-
values
public static AutoModRuleTriggerMetaData.Preset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AutoModRuleTriggerMetaData.Preset c : AutoModRuleTriggerMetaData.Preset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AutoModRuleTriggerMetaData.Preset valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
public static AutoModRuleTriggerMetaData.Preset of(int value)
Gets the type of message. It is guaranteed that invokinggetValue()
from the returned enum will be equal (==
) to the suppliedvalue
.- Parameters:
value
- The underlying value as represented by Discord.- Returns:
- The type of message.
-
-