Package net.dv8tion.jda.api.audit
Enum ActionType
- java.lang.Object
-
- java.lang.Enum<ActionType>
-
- net.dv8tion.jda.api.audit.ActionType
-
- All Implemented Interfaces:
Serializable,Comparable<ActionType>
public enum ActionType extends Enum<ActionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BANAn Administrator has banned a user.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.INVITE_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.MESSAGE_CREATEA message was created.MESSAGE_DELETEAn Administrator has deleted one or moreMessages.MESSAGE_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.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(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
-
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
-
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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- 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)
-
-