public enum AuditLogOption extends java.lang.Enum<AuditLogOption>
The expected types are not guaranteed to be accurate!
Enum Constant | Description |
---|---|
CHANNEL |
Possible secondary target of an
ActionType
such as ActionType.CHANNEL_OVERRIDE_CREATE
Use with Guild.getTextChannelById(String)
or similar method for VoiceChannels |
COUNT |
Possible detail for
ActionType.MESSAGE_DELETE
describing the amount of deleted messages. |
DELETE_MEMBER_DAYS |
Possible option of
ActionType.PRUNE
describing the period of inactivity for that prune. |
ID |
This is sometimes visible for
ActionTypes
which create a new entity. |
MEMBERS_REMOVED |
Possible option of
ActionType.PRUNE
describing the amount of kicked members for that prune. |
ROLE |
Possible secondary target of an
ActionType
such as ActionType.CHANNEL_OVERRIDE_CREATE
Use with Guild.getRoleById(String) |
TYPE |
Possible option indicating the type of an entity.
|
USER |
Possible secondary target of an
ActionType
such as ActionType.CHANNEL_OVERRIDE_CREATE
Use with JDA.getUserById(String) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getKey() |
Key used in
AuditLogEntry.getOptionByName(String) |
java.lang.String |
toString() |
|
static AuditLogOption |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static AuditLogOption[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuditLogOption COUNT
ActionType.MESSAGE_DELETE
describing the amount of deleted messages.
Expected type: Integer
public static final AuditLogOption CHANNEL
ActionType
such as ActionType.CHANNEL_OVERRIDE_CREATE
Guild.getTextChannelById(String)
or similar method for VoiceChannels
Expected type: String
public static final AuditLogOption USER
ActionType
such as ActionType.CHANNEL_OVERRIDE_CREATE
JDA.getUserById(String)
Expected type: String
public static final AuditLogOption ROLE
ActionType
such as ActionType.CHANNEL_OVERRIDE_CREATE
Guild.getRoleById(String)
Expected type: String
public static final AuditLogOption TYPE
ActionType.CHANNEL_OVERRIDE_CREATE
or ActionType.CHANNEL_CREATE
.
Expected type: String or Integer
This type depends on the action taken place.
public static final AuditLogOption ID
ActionTypes
which create a new entity.
getXById
method.
Expected type: String
public static final AuditLogOption DELETE_MEMBER_DAYS
ActionType.PRUNE
describing the period of inactivity for that prune.
Expected type: int
public static final AuditLogOption MEMBERS_REMOVED
ActionType.PRUNE
describing the amount of kicked members for that prune.
Expected type: int
public static AuditLogOption[] values()
for (AuditLogOption c : AuditLogOption.values()) System.out.println(c);
public static AuditLogOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getKey()
AuditLogEntry.getOptionByName(String)
public java.lang.String toString()
toString
in class java.lang.Enum<AuditLogOption>