Package net.dv8tion.jda.api.audit
Enum AuditLogOption
- All Implemented Interfaces:
Serializable
,Comparable<AuditLogOption>
Enum constants for possible options
Providing detailed description of possible occasions and expected types.
Providing detailed description of possible occasions and expected types.
The expected types are not guaranteed to be accurate!
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionPossible secondary target of anActionType
such as:ActionType.MEMBER_VOICE_MOVE
ActionType.MESSAGE_PIN
ActionType.MESSAGE_UNPIN
ActionType.MESSAGE_DELETE
Use withGuild.getGuildChannelById(String)
.Possible detail forActionType.MESSAGE_DELETE
ActionType.MESSAGE_BULK_DELETE
ActionType.MEMBER_VOICE_KICK
ActionType.MEMBER_VOICE_MOVE
describing the amount of targeted entities.Possible option ofActionType.PRUNE
describing the period of inactivity for that prune.This is sometimes visible forActionTypes
which create a new entity.Possible option ofActionType.PRUNE
describing the amount of kicked members for that prune.Possible message id for actions of typeActionType.MESSAGE_PIN
andActionType.MESSAGE_UNPIN
.Possible secondary target of anActionType
such asActionType.CHANNEL_OVERRIDE_CREATE
Use withGuild.getRoleById(String)
Possible name of the role if the target type isTargetType.ROLE
Possible option indicating the type of an entity.Possible secondary target of anActionType
such asActionType.CHANNEL_OVERRIDE_CREATE
Use withJDA.getUserById(String)
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Key used inAuditLogEntry.getOptionByName(String)
toString()
static AuditLogOption
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.
-
Enum Constant Details
-
COUNT
Possible detail forActionType.MESSAGE_DELETE
ActionType.MESSAGE_BULK_DELETE
ActionType.MEMBER_VOICE_KICK
ActionType.MEMBER_VOICE_MOVE
Use withInteger.parseInt(String)
.Expected type: String
-
MESSAGE
Possible message id for actions of typeActionType.MESSAGE_PIN
andActionType.MESSAGE_UNPIN
.
Use withMessageChannel.retrieveMessageById(String)
.Expected type: String
-
CHANNEL
Possible secondary target of anActionType
such as:ActionType.MEMBER_VOICE_MOVE
ActionType.MESSAGE_PIN
ActionType.MESSAGE_UNPIN
ActionType.MESSAGE_DELETE
Guild.getGuildChannelById(String)
.Expected type: String
-
USER
Possible secondary target of anActionType
such asActionType.CHANNEL_OVERRIDE_CREATE
Use withJDA.getUserById(String)
Expected type: String
-
ROLE
Possible secondary target of anActionType
such asActionType.CHANNEL_OVERRIDE_CREATE
Use withGuild.getRoleById(String)
Expected type: String
-
ROLE_NAME
Possible name of the role if the target type isTargetType.ROLE
Expected type: String
-
TYPE
Possible option indicating the type of an entity.
Maybe forActionType.CHANNEL_OVERRIDE_CREATE
orActionType.CHANNEL_CREATE
.Expected type: String or Integer
This type depends on the action taken place. -
ID
This is sometimes visible forActionTypes
which create a new entity.
Use with designatedgetXById
method.Expected type: String
-
DELETE_MEMBER_DAYS
Possible option ofActionType.PRUNE
describing the period of inactivity for that prune.Expected type: int
-
MEMBERS_REMOVED
Possible option ofActionType.PRUNE
describing the amount of kicked members for that prune.Expected type: int
-
-
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
Key used inAuditLogEntry.getOptionByName(String)
- Returns:
- Key for this option
-
toString
- Overrides:
toString
in classEnum<AuditLogOption>
-