Enum AuditLogKey
- All Implemented Interfaces:
Serializable
,Comparable<AuditLogKey>
AuditLogEntry.getChangeByKey(AuditLogEntry.AuditLogKey
.
Each constant in this enum has elaborate documentation on expected values for the
returned AuditLogChange
.
There is no guarantee that the resulting type is accurate or that the value selected is not null
!
- See Also:
-
Enum Constant Summary
Enum ConstantDescriptionThe id for an authorized application (webhook/bot/integration)Change of theAutoModRule.getName()
for the targetAutoModRule
TheAutoModRule.getTriggerType()
for anAutoModRule
triggerThe available tags of thisForumChannel
.Change of theVoiceChannel.getBitrate()
value.Change of theIPostContainer.getDefaultReaction()
value.TheIPostContainer.getDefaultSortOrder()
value.Change of theIThreadContainer.getDefaultThreadSlowmode()
value.Change of theflags
value.The relevant channel for the audit log entry.Change of theGuildChannel.getName()
value.Change of theIAgeRestrictedChannel.isNSFW()
value.The overrides for this channel.Change of theICategorizableChannel.getParentCategory()
ICategorizable.getParentCategory()} value.Change of theRegion
value.Change of theISlowmodeChannel.getSlowmode()
value.Change of theTextChannel.getTopic()
value.The integer type of this channel.Change of theVoiceChannel.getUserLimit()
value.Change of theVoiceChannel.getStatus()
value.TheForumChannel.getDefaultLayout()
value.Change of theEmoji.getName()
value.Roles added toRichCustomEmoji.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Roles remove fromRichCustomEmoji.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Change of theGuild.getAfkChannel()
value represented by a VoiceChannel ID.Change of theAFKTimeout
of a Guild.Change of theGuild.getCommunityUpdatesChannel()
value represented by a TextChannel ID.Change of theGuild.getExplicitContentLevel()
of a Guild.Change of theIcon ID
of a Guild.Change for theGuild.getName()
valueChange of theGuild.getDefaultNotificationLevel()
value.Change of User ID for the owner of aGuild
Days of inactivity for a prune event.Change of region represented by a key.Change of theGuild.getRulesChannel()
value represented by a TextChannel ID.Change of theSplash ID
of a Guild.Change of theGuild.getSystemChannel()
value represented by a TextChannel ID.Change of theGuild.getVanityCode()
value.Change of theGuild.getVerificationLevel()
value.The target channel for a widgetWhether the guild widget is disabled or enabledThis is sometimes visible forActionTypes
which create a new entity.Change of theInvite.getChannel()
ID for the targetInvite
Use withJDA.getTextChannelById(String)
orJDA.getVoiceChannelById(String)
Change of theInvite.getCode()
for the targetInvite
Use withInvite.resolve(net.dv8tion.jda.api.JDA, String)
Invite.resolve(JDA, String)}Change of theInvite.getMaxAge()
for the targetInvite
Change of theInvite.getMaxUses()
for the targetInvite
Change of theInvite.isTemporary()
for the targetInvite
Change of theInvite.getUses()
for the targetInvite
Change of theGuildVoiceState
of a Member.Change of theGuildVoiceState
of a Member.Change of theMember.getNickname()
valueRoles added toMember.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Roles removed fromMember.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Change of theTime out
of a Member.Modified raw allowed permission bits
Similar to the value returned byPermissionOverride.getAllowedRaw()
Use withPermission.getPermissions(long)
Modified raw denied permission bits
Similar to the value returned byPermissionOverride.getDeniedRaw()
Use withPermission.getPermissions(long)
The string type of this override.Change of theStageInstance.getPrivacyLevel()
value
Use withStageInstance.PrivacyLevel.fromKey(int)
Change of theRole.getColor()
value.Change of theRole.isHoisted()
value.Change of theRole.isMentionable()
value.Change of theRole.getName()
value.Change of theRole.getPermissionsRaw()
value.Change of theSticker.getDescription()
value.Change of theSticker.getFormatType()
value.Change of theSticker.getName()
value.Change of theSticker.getTags()
value.The applied tags of thisThreadChannel
, given that it is a forum post.Change of theThreadChannel.isArchived()
value.Change of theThreadChannel.getAutoArchiveDuration()
value.Change of theThreadChannel.isInvitable()
value.Change of theThreadChannel.isLocked()
value.Change of theThreadChannel.getName()
value.Entity type (like channel type or webhook type)Change of theWebhook.getDefaultUser()
's avatar hash of a Webhook.Change of theWebhook.getName()
value. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
toString()
static AuditLogKey
Returns the enum constant of this type with the specified name.static AuditLogKey[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ID
This is sometimes visible forActionTypes
which create a new entity.
Use with designatedgetXById
method.Expected type: String
-
TYPE
Entity type (like channel type or webhook type)Expected type: String or int
-
APPLICATION_ID
The id for an authorized application (webhook/bot/integration)Expected type: String
-
GUILD_NAME
Change for theGuild.getName()
valueExpected type: String
-
GUILD_OWNER
Change of User ID for the owner of aGuild
Expected type: String
-
GUILD_REGION
-
GUILD_AFK_TIMEOUT
-
GUILD_AFK_CHANNEL
Change of theGuild.getAfkChannel()
value represented by a VoiceChannel ID.
Use withGuild.getVoiceChannelById(String)
Expected type: String
-
GUILD_SYSTEM_CHANNEL
Change of theGuild.getSystemChannel()
value represented by a TextChannel ID.
Use withGuild.getTextChannelById(String)
Expected type: String
-
GUILD_RULES_CHANNEL
Change of theGuild.getRulesChannel()
value represented by a TextChannel ID.
Use withGuild.getTextChannelById(String)
Expected type: String
-
GUILD_COMMUNITY_UPDATES_CHANNEL
Change of theGuild.getCommunityUpdatesChannel()
value represented by a TextChannel ID.
Use withGuild.getTextChannelById(String)
Expected type: String
-
GUILD_EXPLICIT_CONTENT_FILTER
Change of theGuild.getExplicitContentLevel()
of a Guild.
Use withGuild.ExplicitContentLevel.fromKey(int)
Expected type: Integer
-
GUILD_ICON
Change of theIcon ID
of a Guild.Expected type: String
-
GUILD_SPLASH
Change of theSplash ID
of a Guild.Expected type: String
-
GUILD_VERIFICATION_LEVEL
Change of theGuild.getVerificationLevel()
value.
Use withGuild.VerificationLevel.fromKey(int)
Expected type: Integer
-
GUILD_NOTIFICATION_LEVEL
Change of theGuild.getDefaultNotificationLevel()
value.
Use withGuild.NotificationLevel.fromKey(int)
Expected type: Integer
-
GUILD_MFA_LEVEL
Change of theGuild.getRequiredMFALevel()
value
Use withGuild.MFALevel.fromKey(int)
Expected type: Integer
-
GUILD_VANITY_URL_CODE
Change of theGuild.getVanityCode()
value.Expected type: String
-
GUILD_PRUNE_DELETE_DAYS
Days of inactivity for a prune event.Expected type: Integer
-
GUILD_WIDGET_ENABLED
Whether the guild widget is disabled or enabledExpected type: Boolean
-
GUILD_WIDGET_CHANNEL_ID
The target channel for a widgetExpected type: String
-
CHANNEL_NAME
Change of theGuildChannel.getName()
value.Expected type: String
-
CHANNEL_FLAGS
Change of theflags
value.Expected type: Integer
-
CHANNEL_PARENT
Change of theICategorizableChannel.getParentCategory()
ICategorizable.getParentCategory()} value.
Use withGuild.getCategoryById(String)
Expected type: String
-
CHANNEL_TOPIC
-
CHANNEL_VOICE_STATUS
-
CHANNEL_SLOWMODE
Change of theISlowmodeChannel.getSlowmode()
value.Expected type: Integer
-
CHANNEL_DEFAULT_THREAD_SLOWMODE
Change of theIThreadContainer.getDefaultThreadSlowmode()
value.Expected type: Integer
-
CHANNEL_DEFAULT_REACTION_EMOJI
Change of theIPostContainer.getDefaultReaction()
value.Expected type: Map containing
emoji_id
andemoji_name
-
CHANNEL_BITRATE
-
CHANNEL_USER_LIMIT
-
CHANNEL_NSFW
Change of theIAgeRestrictedChannel.isNSFW()
value.Expected type: Boolean
-
CHANNEL_REGION
-
CHANNEL_TYPE
-
CHANNEL_OVERRIDES
The overrides for this channel.Expected type: List<Map<String, Object>>
-
CHANNEL_AVAILABLE_TAGS
The available tags of thisForumChannel
.Expected type: List<Map<String, Object>>
-
CHANNEL_ID
The relevant channel for the audit log entry.Expected type: String
-
CHANNEL_DEFAULT_SORT_ORDER
TheIPostContainer.getDefaultSortOrder()
value.
Only forChannelType.FORUM
andChannelType.MEDIA
.Expected type: Integer
-
DEFAULT_FORUM_LAYOUT
-
THREAD_NAME
Change of theThreadChannel.getName()
value.Expected type: String
-
THREAD_AUTO_ARCHIVE_DURATION
Change of theThreadChannel.getAutoArchiveDuration()
value.Expected type: Integer
-
THREAD_ARCHIVED
Change of theThreadChannel.isArchived()
value.Expected type: Boolean
-
THREAD_LOCKED
Change of theThreadChannel.isLocked()
value.Expected type: Boolean
-
THREAD_INVITABLE
Change of theThreadChannel.isInvitable()
value. This can only be set/modified on aprivate thread
.Expected type: Boolean
-
THREAD_APPLIED_TAGS
The applied tags of thisThreadChannel
, given that it is a forum post.Expected type: List<String>
-
PRIVACY_LEVEL
Change of theStageInstance.getPrivacyLevel()
value
Use withStageInstance.PrivacyLevel.fromKey(int)
Expected type: Integer
-
MEMBER_NICK
Change of theMember.getNickname()
valueExpected type: String
-
MEMBER_MUTE
Change of theGuildVoiceState
of a Member.
Indicating that theGuild.isGuildMuted()
value updated.Expected type: Boolean
-
MEMBER_DEAF
Change of theGuildVoiceState
of a Member.
Indicating that theGuild.isGuildDeafened()
value updated.Expected type: Boolean
-
MEMBER_ROLES_ADD
Roles added toMember.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Expected type: List<String>
-
MEMBER_ROLES_REMOVE
Roles removed fromMember.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Expected type: List<String>
-
MEMBER_TIME_OUT
Change of theTime out
of a Member.
Indicating that theMember.getTimeOutEnd()
value updated.
This is provided as an ISO8601 Date-Time string.Expected type: String
-
OVERRIDE_DENY
Modified raw denied permission bits
Similar to the value returned byPermissionOverride.getDeniedRaw()
Use withPermission.getPermissions(long)
Expected type: long
-
OVERRIDE_ALLOW
Modified raw allowed permission bits
Similar to the value returned byPermissionOverride.getAllowedRaw()
Use withPermission.getPermissions(long)
Expected type: long
-
OVERRIDE_TYPE
The string type of this override."role"
or"member"
.Expected type: String
-
ROLE_NAME
Change of theRole.getName()
value.Expected type: String
-
ROLE_PERMISSIONS
Change of theRole.getPermissionsRaw()
value.
Use withPermission.getPermissions(long)
Expected type: Long
-
ROLE_COLOR
-
ROLE_HOISTED
Change of theRole.isHoisted()
value.Expected type: Boolean
-
ROLE_MENTIONABLE
Change of theRole.isMentionable()
value.Expected type: Boolean
-
EMOJI_NAME
Change of theEmoji.getName()
value.Expected type: String
-
EMOJI_ROLES_ADD
Roles added toRichCustomEmoji.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Expected type: List<String>
-
EMOJI_ROLES_REMOVE
Roles remove fromRichCustomEmoji.getRoles()
with this action
Containing a list ofRole
IDs
Use withGuild.getRoleById(String)
Expected type: List<String>
-
STICKER_NAME
Change of theSticker.getName()
value.Expected type: String
-
STICKER_FORMAT
Change of theSticker.getFormatType()
value.Expected type: String
-
STICKER_DESCRIPTION
Change of theSticker.getDescription()
value.Expected type: String
-
STICKER_TAGS
Change of theSticker.getTags()
value.Expected type: String
-
WEBHOOK_NAME
Change of theWebhook.getName()
value.Expected type: String
-
WEBHOOK_ICON
Change of theWebhook.getDefaultUser()
's avatar hash of a Webhook.
This is used to build theUser.getAvatarUrl()
!Expected type: String
-
WEBHOOK_CHANNEL
Change of theWebhook.getChannel()
for the targetWebhook
Use withGuild.getTextChannelById(String)
Expected type: String
-
INVITE_CODE
Change of theInvite.getCode()
for the targetInvite
Use withInvite.resolve(net.dv8tion.jda.api.JDA, String)
Invite.resolve(JDA, String)}Expected type: String
-
INVITE_MAX_AGE
-
INVITE_TEMPORARY
-
INVITE_INVITER
Change of theInvite.getInviter()
ID for the targetInvite
Use withJDA.getUserById(String)
Expected type: String
-
INVITE_CHANNEL
Change of theInvite.getChannel()
ID for the targetInvite
Use withJDA.getTextChannelById(String)
orJDA.getVoiceChannelById(String)
Expected type: String
-
INVITE_USES
-
INVITE_MAX_USES
-
AUTO_MODERATION_RULE_NAME
-
AUTO_MODERATION_RULE_TRIGGER_TYPE
TheAutoModRule.getTriggerType()
for anAutoModRule
triggerUse with
AutoModTriggerType.fromKey(int)
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
-
toString
- Overrides:
toString
in classEnum<AuditLogKey>
-