Enum AutoModEventType
- All Implemented Interfaces:
Serializable
,Comparable<AutoModEventType>
The type of event an
AutoModRule
is triggered by.- See Also:
-
Enum Constant Summary
Enum 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 AutoModEventType
fromKey
(int key) TheAutoModEventType
represented by the provided key.int
getKey()
The raw value used by Discord to represent this type.static AutoModEventType
Returns the enum constant of this type with the specified name.static AutoModEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getKey
public int getKey()The raw value used by Discord to represent this type.- Returns:
- The raw value
-
fromKey
TheAutoModEventType
represented by the provided key.- Parameters:
key
- The raw key- Returns:
- The
AutoModEventType
orUNKNOWN
-