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 BAN
An Administrator has banned a user.CHANNEL_CREATE
An Administrator created aGuildChannel
CHANNEL_DELETE
An Administrator deleted aGuildChannel
.CHANNEL_OVERRIDE_CREATE
An Administrator created aPermissionOverride
.CHANNEL_OVERRIDE_DELETE
An Administrator deleted aPermissionOverride
.CHANNEL_OVERRIDE_UPDATE
An Administrator updatedPermissionOverride
information.CHANNEL_UPDATE
An Administrator updatedGuildChannel
information.EMOTE_CREATE
An Administrator created anEmote
.EMOTE_DELETE
An Administrator deleted anEmote
.EMOTE_UPDATE
An Administrator updated anEmote
.GUILD_UPDATE
An Administrator updatedGuild
information.INVITE_CREATE
Someone has created anInvite
.INVITE_DELETE
An Administrator has deleted anInvite
.INVITE_UPDATE
AnInvite
has been updated.KICK
An Administrator has kicked a member.MEMBER_ROLE_UPDATE
An Administrator updated the roles of a member.MEMBER_UPDATE
AMember
was either updated by an administrator or the member updated itself.MESSAGE_CREATE
A message was created.MESSAGE_DELETE
An Administrator has deleted one or moreMessages
.MESSAGE_UPDATE
A message was updated.PRUNE
An Administrator has pruned members for inactivity.ROLE_CREATE
An Administrator has created aRole
.ROLE_DELETE
An Administrator has deleted aRole
.ROLE_UPDATE
An Administrator has updated aRole
.UNBAN
An Administrator has unbanned a user.UNKNOWN
WEBHOOK_CREATE
An Administrator has created aWebhook
.WEBHOOK_REMOVE
An Administrator has deleted aWebhook
.WEBHOOK_UPDATE
An Administrator has updated aWebhook
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActionType
from(int key)
int
getKey()
The raw key used to identify types within the api.TargetType
getTargetType()
The expectedTargetType
for this ActionTypestatic ActionType
valueOf(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 updatedGuild
information.Possible Keys
-
CHANNEL_CREATE
public static final ActionType CHANNEL_CREATE
An Administrator created 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_OVERRIDES
CHANNEL_NAME
CHANNEL_TYPE
ID
-
CHANNEL_UPDATE
public static final ActionType CHANNEL_UPDATE
An Administrator updatedGuildChannel
information.Possible Keys
CHANNEL_BITRATE
(VoiceChannel only)CHANNEL_USER_LIMIT
(VoiceChannel only)CHANNEL_TOPIC
(TextChannel only)CHANNEL_SLOWMODE
(TextChannel only)CHANNEL_NSFW
(TextChannel only)CHANNEL_NAME
CHANNEL_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_OVERRIDES
CHANNEL_NAME
CHANNEL_TYPE
ID
-
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
AMember
was 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
AnInvite
has 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 expectedTargetType
for this ActionType- Returns:
TargetType
-
from
public static ActionType from(int key)
-
-