Package org.javacord.api.entity.auditlog
Enum AuditLogActionType
- java.lang.Object
-
- java.lang.Enum<AuditLogActionType>
-
- org.javacord.api.entity.auditlog.AuditLogActionType
-
- All Implemented Interfaces:
Serializable,Comparable<AuditLogActionType>
public enum AuditLogActionType extends Enum<AuditLogActionType>
An enum with all action types.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditLogActionTypefromValue(int value)Gets anAuditLogActionTypeby its value.intgetValue()Gets the value of the action type.static AuditLogActionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AuditLogActionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GUILD_UPDATE
public static final AuditLogActionType GUILD_UPDATE
-
CHANNEL_CREATE
public static final AuditLogActionType CHANNEL_CREATE
-
CHANNEL_UPDATE
public static final AuditLogActionType CHANNEL_UPDATE
-
CHANNEL_DELETE
public static final AuditLogActionType CHANNEL_DELETE
-
CHANNEL_OVERWRITE_CREATE
public static final AuditLogActionType CHANNEL_OVERWRITE_CREATE
-
CHANNEL_OVERWRITE_UPDATE
public static final AuditLogActionType CHANNEL_OVERWRITE_UPDATE
-
CHANNEL_OVERWRITE_DELETE
public static final AuditLogActionType CHANNEL_OVERWRITE_DELETE
-
MEMBER_KICK
public static final AuditLogActionType MEMBER_KICK
-
MEMBER_PRUNE
public static final AuditLogActionType MEMBER_PRUNE
-
MEMBER_BAN_ADD
public static final AuditLogActionType MEMBER_BAN_ADD
-
MEMBER_BAN_REMOVE
public static final AuditLogActionType MEMBER_BAN_REMOVE
-
MEMBER_UPDATE
public static final AuditLogActionType MEMBER_UPDATE
-
MEMBER_ROLE_UPDATE
public static final AuditLogActionType MEMBER_ROLE_UPDATE
-
ROLE_CREATE
public static final AuditLogActionType ROLE_CREATE
-
ROLE_UPDATE
public static final AuditLogActionType ROLE_UPDATE
-
ROLE_DELETE
public static final AuditLogActionType ROLE_DELETE
-
INVITE_CREATE
public static final AuditLogActionType INVITE_CREATE
-
INVITE_UPDATE
public static final AuditLogActionType INVITE_UPDATE
-
INVITE_DELETE
public static final AuditLogActionType INVITE_DELETE
-
WEBHOOK_CREATE
public static final AuditLogActionType WEBHOOK_CREATE
-
WEBHOOK_UPDATE
public static final AuditLogActionType WEBHOOK_UPDATE
-
WEBHOOK_DELETE
public static final AuditLogActionType WEBHOOK_DELETE
-
EMOJI_CREATE
public static final AuditLogActionType EMOJI_CREATE
-
EMOJI_UPDATE
public static final AuditLogActionType EMOJI_UPDATE
-
EMOJI_DELETE
public static final AuditLogActionType EMOJI_DELETE
-
MESSAGE_DELETE
public static final AuditLogActionType MESSAGE_DELETE
-
UNKNOWN
public static final AuditLogActionType UNKNOWN
An unknown action type.
-
-
Method Detail
-
values
public static AuditLogActionType[] 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 (AuditLogActionType c : AuditLogActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuditLogActionType 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 value of the action type.- Returns:
- The value of the action type.
-
fromValue
public static AuditLogActionType fromValue(int value)
Gets anAuditLogActionTypeby its value.- Parameters:
value- The value of the action type.- Returns:
- The action type for the given value,
or
UNKNOWNif there's no with the given value.
-
-