Enum Class AutoModEventType
- All Implemented Interfaces:
Serializable,Comparable<AutoModEventType>,Constable
The type of event an
AutoModRule is triggered by.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe rule is triggered when a member updates their profile.The rule is triggered by a message being sent in a guild channel.Placeholder for unknown types which haven't been added yet. -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoModEventTypefromKey(int key) TheAutoModEventTyperepresented by the provided key.intgetKey()The raw value used by Discord to represent this type.static AutoModEventTypeReturns the enum constant of this class with the specified name.static AutoModEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MESSAGE_SEND
The rule is triggered by a message being sent in a guild channel. -
MEMBER_UPDATE
The rule is triggered when a member updates their profile.- Incubating:
- This has not been officially released yet
-
UNKNOWN
Placeholder for unknown types which haven't been added yet.
-
-
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
-
getKey
public int getKey()The raw value used by Discord to represent this type.- Returns:
- The raw value
-
fromKey
TheAutoModEventTyperepresented by the provided key.- Parameters:
key- The raw key- Returns:
- The
AutoModEventTypeorUNKNOWN
-