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 BAN
An Administrator has banned a user.BOT_ADD
An Administrator has added a bot to the server.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.INTEGRATION_CREATE
An Administrator has added an integration to the guildINTEGRATION_DELETE
An Administrator has removed an integration from the guildINTEGRATION_UPDATE
An Administrator has updated an integration of the guildINVITE_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.MEMBER_VOICE_KICK
One or more members were disconnected from a voice channel by an AdministratorMEMBER_VOICE_MOVE
One or more members were moved from one voice channel to another by an AdministratorMESSAGE_BULK_DELETE
An Administrator has performed a bulk delete of messages in a channelMESSAGE_CREATE
A message was created.MESSAGE_DELETE
An Administrator has deleted one or moreMessages
.MESSAGE_PIN
An Administrator has pinned a message in the channelMESSAGE_UNPIN
An Administrator has unpinned a message in the channelMESSAGE_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
.STAGE_INSTANCE_CREATE
AStageInstance
was started by aStage Moderator
.STAGE_INSTANCE_DELETE
AStageInstance
was deleted by aStage Moderator
.STAGE_INSTANCE_UPDATE
AStageInstance
was updated by aStage Moderator
.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(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 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
-
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.COUNT
The amount of users movedAuditLogOption.CHANNEL
The 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.COUNT
The 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
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
-
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 expectedTargetType
for this ActionType- Returns:
TargetType
-
from
public static ActionType from(int key)
-
-