Package net.dv8tion.jda.api.audit
Enum ActionType
- java.lang.Object
-
- java.lang.Enum<ActionType>
-
- net.dv8tion.jda.api.audit.ActionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ActionType>
public enum ActionType extends java.lang.Enum<ActionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BANAn Administrator has banned a user.BOT_ADDAn Administrator has added a bot to the server.CHANNEL_CREATEAn Administrator created aGuildChannelCHANNEL_DELETEAn Administrator deleted aGuildChannel.CHANNEL_OVERRIDE_CREATEAn Administrator created aPermissionOverride.CHANNEL_OVERRIDE_DELETEAn Administrator deleted aPermissionOverride.CHANNEL_OVERRIDE_UPDATEAn Administrator updatedPermissionOverrideinformation.CHANNEL_UPDATEAn Administrator updatedGuildChannelinformation.EMOTE_CREATEAn Administrator created anEmote.EMOTE_DELETEAn Administrator deleted anEmote.EMOTE_UPDATEAn Administrator updated anEmote.GUILD_UPDATEAn Administrator updatedGuildinformation.INTEGRATION_CREATEAn Administrator has added an integration to the guildINTEGRATION_DELETEAn Administrator has removed an integration from the guildINTEGRATION_UPDATEAn Administrator has updated an integration of the guildINVITE_CREATESomeone has created anInvite.INVITE_DELETEAn Administrator has deleted anInvite.INVITE_UPDATEAnInvitehas been updated.KICKAn Administrator has kicked a member.MEMBER_ROLE_UPDATEAn Administrator updated the roles of a member.MEMBER_UPDATEAMemberwas either updated by an administrator or the member updated itself.MEMBER_VOICE_KICKOne or more members were disconnected from a voice channel by an AdministratorMEMBER_VOICE_MOVEOne or more members were moved from one voice channel to another by an AdministratorMESSAGE_BULK_DELETEAn Administrator has performed a bulk delete of messages in a channelMESSAGE_CREATEA message was created.MESSAGE_DELETEAn Administrator has deleted one or moreMessages.MESSAGE_PINAn Administrator has pinned a message in the channelMESSAGE_UNPINAn Administrator has unpinned a message in the channelMESSAGE_UPDATEA message was updated.PRUNEAn Administrator has pruned members for inactivity.ROLE_CREATEAn Administrator has created aRole.ROLE_DELETEAn Administrator has deleted aRole.ROLE_UPDATEAn Administrator has updated aRole.STAGE_INSTANCE_CREATEAStageInstancewas started by aStage Moderator.STAGE_INSTANCE_DELETEAStageInstancewas deleted by aStage Moderator.STAGE_INSTANCE_UPDATEAStageInstancewas updated by aStage Moderator.UNBANAn Administrator has unbanned a user.UNKNOWNWEBHOOK_CREATEAn Administrator has created aWebhook.WEBHOOK_REMOVEAn Administrator has deleted aWebhook.WEBHOOK_UPDATEAn Administrator has updated aWebhook.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActionTypefrom(int key)intgetKey()The raw key used to identify types within the api.TargetTypegetTargetType()The expectedTargetTypefor this ActionTypestatic ActionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ActionType[]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 ActionType GUILD_UPDATE
An Administrator updatedGuildinformation.Possible Keys
-
CHANNEL_CREATE
public static final ActionType CHANNEL_CREATE
An Administrator created aGuildChannelPossible Keys
CHANNEL_BITRATE(VoiceChannel only)CHANNEL_USER_LIMIT(VoiceChannel only)CHANNEL_TOPIC(TextChannel only)CHANNEL_SLOWMODE(TextChannel only)CHANNEL_NSFW(TextChannel only)CHANNEL_OVERRIDESCHANNEL_NAMECHANNEL_TYPEID
-
CHANNEL_UPDATE
public static final ActionType CHANNEL_UPDATE
An Administrator updatedGuildChannelinformation.Possible Keys
CHANNEL_BITRATE(VoiceChannel only)CHANNEL_USER_LIMIT(VoiceChannel only)CHANNEL_TOPIC(TextChannel only)CHANNEL_SLOWMODE(TextChannel only)CHANNEL_NSFW(TextChannel only)CHANNEL_NAMECHANNEL_TYPE
-
CHANNEL_DELETE
public static final ActionType CHANNEL_DELETE
An Administrator deleted aGuildChannel.Possible Keys
CHANNEL_BITRATE(VoiceChannel only)CHANNEL_USER_LIMIT(VoiceChannel only)CHANNEL_TOPIC(TextChannel only)CHANNEL_SLOWMODE(TextChannel only)CHANNEL_NSFW(TextChannel only)CHANNEL_OVERRIDESCHANNEL_NAMECHANNEL_TYPEID
-
CHANNEL_OVERRIDE_CREATE
public static final ActionType CHANNEL_OVERRIDE_CREATE
-
CHANNEL_OVERRIDE_UPDATE
public static final ActionType CHANNEL_OVERRIDE_UPDATE
-
CHANNEL_OVERRIDE_DELETE
public static final ActionType CHANNEL_OVERRIDE_DELETE
-
KICK
public static final ActionType KICK
An Administrator has kicked a member.
-
PRUNE
public static final ActionType PRUNE
An Administrator has pruned members for inactivity.Possible Options
-
BAN
public static final ActionType BAN
An Administrator has banned a user.
-
UNBAN
public static final ActionType UNBAN
An Administrator has unbanned a user.
-
MEMBER_UPDATE
public static final ActionType MEMBER_UPDATE
AMemberwas either updated by an administrator or the member updated itself.Possible Keys
-
MEMBER_ROLE_UPDATE
public static final ActionType MEMBER_ROLE_UPDATE
An Administrator updated the roles of a member.Possible Keys
-
MEMBER_VOICE_MOVE
public static final ActionType MEMBER_VOICE_MOVE
One or more members were moved from one voice channel to another by an AdministratorPossible Options
AuditLogOption.COUNTThe amount of users movedAuditLogOption.CHANNELThe target channel
-
MEMBER_VOICE_KICK
public static final ActionType MEMBER_VOICE_KICK
One or more members were disconnected from a voice channel by an AdministratorPossible Options
AuditLogOption.COUNTThe amount of users who were disconnected
-
BOT_ADD
public static final ActionType BOT_ADD
An Administrator has added a bot to the server.
-
ROLE_CREATE
public static final ActionType ROLE_CREATE
An Administrator has created aRole.Possible Keys
-
ROLE_UPDATE
public static final ActionType ROLE_UPDATE
An Administrator has updated aRole.Possible Keys
-
ROLE_DELETE
public static final ActionType ROLE_DELETE
An Administrator has deleted aRole.Possible Keys
-
INVITE_CREATE
public static final ActionType INVITE_CREATE
Someone has created anInvite.Possible Keys
-
INVITE_UPDATE
public static final ActionType INVITE_UPDATE
AnInvitehas been updated.
-
INVITE_DELETE
public static final ActionType INVITE_DELETE
An Administrator has deleted anInvite.Possible Keys
-
WEBHOOK_CREATE
public static final ActionType WEBHOOK_CREATE
-
WEBHOOK_UPDATE
public static final ActionType WEBHOOK_UPDATE
-
WEBHOOK_REMOVE
public static final ActionType WEBHOOK_REMOVE
-
EMOTE_CREATE
public static final ActionType EMOTE_CREATE
-
EMOTE_UPDATE
public static final ActionType EMOTE_UPDATE
-
EMOTE_DELETE
public static final ActionType EMOTE_DELETE
-
MESSAGE_CREATE
public static final ActionType MESSAGE_CREATE
A message was created.
-
MESSAGE_UPDATE
public static final ActionType MESSAGE_UPDATE
A message was updated.
-
MESSAGE_DELETE
public static final ActionType MESSAGE_DELETE
-
MESSAGE_BULK_DELETE
public static final ActionType MESSAGE_BULK_DELETE
An Administrator has performed a bulk delete of messages in a channelPossible Options
-
MESSAGE_PIN
public static final ActionType MESSAGE_PIN
An Administrator has pinned a message in the channelPossible Options
-
MESSAGE_UNPIN
public static final ActionType MESSAGE_UNPIN
An Administrator has unpinned a message in the channelPossible Options
-
INTEGRATION_CREATE
public static final ActionType INTEGRATION_CREATE
An Administrator has added an integration to the guild
-
INTEGRATION_UPDATE
public static final ActionType INTEGRATION_UPDATE
An Administrator has updated an integration of the guild
-
INTEGRATION_DELETE
public static final ActionType INTEGRATION_DELETE
An Administrator has removed an integration from the guild
-
STAGE_INSTANCE_CREATE
public static final ActionType STAGE_INSTANCE_CREATE
-
STAGE_INSTANCE_UPDATE
public static final ActionType STAGE_INSTANCE_UPDATE
-
STAGE_INSTANCE_DELETE
public static final ActionType STAGE_INSTANCE_DELETE
-
UNKNOWN
public static final ActionType UNKNOWN
-
-
Method Detail
-
values
public static ActionType[] 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 (ActionType c : ActionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActionType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getKey
public int getKey()
The raw key used to identify types within the api.- Returns:
- Raw key for this ActionType
-
getTargetType
public TargetType getTargetType()
The expectedTargetTypefor this ActionType- Returns:
TargetType
-
from
public static ActionType from(int key)
-
-