Enum AutoModEventType

java.lang.Object
java.lang.Enum<AutoModEventType>
net.dv8tion.jda.api.entities.automod.AutoModEventType
All Implemented Interfaces:
Serializable, Comparable<AutoModEventType>

public enum AutoModEventType extends Enum<AutoModEventType>
The type of event an AutoModRule is triggered by.
See Also:
  • Enum Constant Details

    • MESSAGE_SEND

      public static final AutoModEventType MESSAGE_SEND
      The rule is triggered by a message being sent in a guild channel.
    • MEMBER_UPDATE

      @Incubating public static final AutoModEventType MEMBER_UPDATE
      The rule is triggered when a member updates their profile.
      Incubating:
      This has not been officially released yet
    • UNKNOWN

      public static final AutoModEventType UNKNOWN
      Placeholder for unknown types which haven't been added yet.
  • Method Details

    • values

      public static AutoModEventType[] 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

      public static AutoModEventType 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 name
      NullPointerException - if the argument is null
    • getKey

      public int getKey()
      The raw value used by Discord to represent this type.
      Returns:
      The raw value
    • fromKey

      @Nonnull public static AutoModEventType fromKey(int key)
      The AutoModEventType represented by the provided key.
      Parameters:
      key - The raw key
      Returns:
      The AutoModEventType or UNKNOWN