public enum AuditLogKey extends java.lang.Enum<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
!
Enum Constant and Description |
---|
CHANNEL_BITRATE
Change of the
VoiceChannel.getBitrate() value. |
CHANNEL_NAME
Change of the
Channel.getName() value. |
CHANNEL_TOPIC
Change of the
TextChannel.getTopic() value. |
CHANNEL_USER_LIMIT
Change of the
VoiceChannel.getUserLimit() value. |
EMOTE_NAME
Change of the
Emote.getName() value. |
EMOTE_ROLES_ADD
Roles added to
Emote.getRoles() with this action
Containing a list of Role IDs
Use with Guild.getRoleById(String) |
EMOTE_ROLES_REMOVE
Roles remove from
Emote.getRoles() with this action
Containing a list of Role IDs
Use with Guild.getRoleById(String) |
GUILD_AFK_CHANNEL
Change of the
Guild.getAfkChannel() value represented by a VoiceChannel ID. |
GUILD_AFK_TIMEOUT
Change of the
AFKTimeout of a Guild. |
GUILD_EXPLICIT_CONTENT_FILTER
Change of the
Guild.getExplicitContentLevel() of a Guild. |
GUILD_ICON
Change of the
Icon ID of a Guild. |
GUILD_MFA_LEVEL
|
GUILD_NAME
Change for the
Guild.getName() value |
GUILD_NOTIFICATION_LEVEL
Change of the
Guild.getDefaultNotificationLevel() value. |
GUILD_OWNER
Change of User ID for the owner of a
Guild |
GUILD_REGION
Change of region represented by a key.
|
GUILD_SPLASH
Change of the
Splash ID of a Guild. |
GUILD_VERIFICATION_LEVEL
Change of the
Guild.getVerificationLevel() value. |
ID
This is sometimes visible for
ActionTypes
which create a new entity. |
MEMBER_DEAF
Change of the
GuildVoiceState of a Member. |
MEMBER_MUTE
Change of the
GuildVoiceState of a Member. |
MEMBER_NICK
Change of the
Member.getNickname() value |
MEMBER_ROLES_ADD
Roles added to
Member.getRoles() with this action
Containing a list of Role IDs
Use with Guild.getRoleById(String) |
MEMBER_ROLES_REMOVE
Roles removed from
Member.getRoles() with this action
Containing a list of Role IDs
Use with Guild.getRoleById(String) |
OVERRIDE_ALLOW
Modified raw allowed permission bits
Similar to the value returned by PermissionOverride.getAllowedRaw()
Use with Permission.getPermissions(long) |
OVERRIDE_DENY
Modified raw denied permission bits
Similar to the value returned by PermissionOverride.getDeniedRaw()
Use with Permission.getPermissions(long) |
ROLE_COLOR
Change of the
Role.getColor() value. |
ROLE_HOISTED
Change of the
Role.isHoisted() value. |
ROLE_MENTIONABLE
Change of the
Role.isMentionable() value. |
ROLE_NAME
Change of the
Role.getName() value. |
ROLE_PERMISSIONS
Change of the
Role.getPermissionsRaw() value. |
WEBHOOK_CHANNEL
|
WEBHOOK_ICON
Change of the
Webhook.getDefaultUser() 's avatar hash of a Webhook. |
WEBHOOK_NAME
Change of the
Webhook.getName() value. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey() |
java.lang.String |
toString() |
static AuditLogKey |
valueOf(java.lang.String name)
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.
|
public static final AuditLogKey ID
ActionTypes
which create a new entity.
getXById
method.
Expected type: String
public static final AuditLogKey GUILD_NAME
Guild.getName()
value
Expected type: String
public static final AuditLogKey GUILD_OWNER
Guild
Expected type: String
public static final AuditLogKey GUILD_REGION
public static final AuditLogKey GUILD_AFK_TIMEOUT
public static final AuditLogKey GUILD_AFK_CHANNEL
Guild.getAfkChannel()
value represented by a VoiceChannel ID.
Guild.getVoiceChannelById(String)
Expected type: String
public static final AuditLogKey GUILD_EXPLICIT_CONTENT_FILTER
Guild.getExplicitContentLevel()
of a Guild.
Guild.ExplicitContentLevel.fromKey(int)
Expected type: Integer
public static final AuditLogKey GUILD_ICON
Icon ID
of a Guild.
Expected type: String
public static final AuditLogKey GUILD_SPLASH
Splash ID
of a Guild.
Expected type: String
public static final AuditLogKey GUILD_VERIFICATION_LEVEL
Guild.getVerificationLevel()
value.
Guild.VerificationLevel.fromKey(int)
Expected type: Integer
public static final AuditLogKey GUILD_NOTIFICATION_LEVEL
Guild.getDefaultNotificationLevel()
value.
Guild.NotificationLevel.fromKey(int)
Expected type: Integer
public static final AuditLogKey GUILD_MFA_LEVEL
Guild.getRequiredMFALevel()
value
Guild.MFALevel.fromKey(int)
Expected type: Integer
public static final AuditLogKey CHANNEL_NAME
Channel.getName()
value.
Expected type: String
public static final AuditLogKey CHANNEL_TOPIC
public static final AuditLogKey CHANNEL_BITRATE
public static final AuditLogKey CHANNEL_USER_LIMIT
public static final AuditLogKey MEMBER_NICK
Member.getNickname()
value
Expected type: String
public static final AuditLogKey MEMBER_MUTE
GuildVoiceState
of a Member.
Guild.isGuildMuted()
value updated.
Expected type: Boolean
public static final AuditLogKey MEMBER_DEAF
GuildVoiceState
of a Member.
Guild.isGuildDeafened()
value updated.
Expected type: Boolean
public static final AuditLogKey MEMBER_ROLES_ADD
Member.getRoles()
with this action
Role
IDs
Guild.getRoleById(String)
Expected type: List<String>
public static final AuditLogKey MEMBER_ROLES_REMOVE
Member.getRoles()
with this action
Role
IDs
Guild.getRoleById(String)
Expected type: List<String>
public static final AuditLogKey OVERRIDE_DENY
PermissionOverride.getDeniedRaw()
Permission.getPermissions(long)
Expected type: Long
public static final AuditLogKey OVERRIDE_ALLOW
PermissionOverride.getAllowedRaw()
Permission.getPermissions(long)
Expected type: Long
public static final AuditLogKey ROLE_NAME
Role.getName()
value.
Expected type: String
public static final AuditLogKey ROLE_PERMISSIONS
Role.getPermissionsRaw()
value.
Permission.getPermissions(long)
Expected type: Long
public static final AuditLogKey ROLE_COLOR
public static final AuditLogKey ROLE_HOISTED
Role.isHoisted()
value.
Expected type: Boolean
public static final AuditLogKey ROLE_MENTIONABLE
Role.isMentionable()
value.
Expected type: Boolean
public static final AuditLogKey EMOTE_NAME
Emote.getName()
value.
Expected type: String
public static final AuditLogKey EMOTE_ROLES_ADD
Emote.getRoles()
with this action
Role
IDs
Guild.getRoleById(String)
Expected type: List<String>
public static final AuditLogKey EMOTE_ROLES_REMOVE
Emote.getRoles()
with this action
Role
IDs
Guild.getRoleById(String)
Expected type: List<String>
public static final AuditLogKey WEBHOOK_NAME
Webhook.getName()
value.
Expected type: String
public static final AuditLogKey WEBHOOK_ICON
Webhook.getDefaultUser()
's avatar hash of a Webhook.
User.getAvatarUrl()
!
Expected type: String
public static final AuditLogKey WEBHOOK_CHANNEL
Webhook.getChannel()
for
the target Webhook
Guild.getTextChannelById(String)
Expected type: String
public static AuditLogKey[] values()
for (AuditLogKey c : AuditLogKey.values()) System.out.println(c);
public static AuditLogKey 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()
public java.lang.String toString()
toString
in class java.lang.Enum<AuditLogKey>