Package net.dv8tion.jda.api.audit
Enum ActionType
- All Implemented Interfaces:
Serializable
,Comparable<ActionType>
-
Enum Constant Summary
Enum ConstantDescriptionA moderator updated the privileges for an applicationAn automod rule sent an alert to a channelAn automod rule put a user intimeout
An automod rule blocked a message from being sentA moderator created a newAutoModRule
A moderator deleted an existingAutoModRule
A moderator updated an existingAutoModRule
An Administrator has banned a user.An Administrator has added a bot to the server.An Administrator created aGuildChannel
An Administrator deleted aGuildChannel
.An Administrator created aPermissionOverride
.An Administrator deleted aPermissionOverride
.An Administrator updatedPermissionOverride
information.An Administrator updatedGuildChannel
information.An Administrator created anCustom Emoji
.An Administrator deleted anCustom Emoji
.An Administrator updated anCustom Emoji
.An Administrator updatedGuild
information.An Administrator has added an integration to the guildAn Administrator has removed an integration from the guildAn Administrator has updated an integration of the guildSomeone has created anInvite
.An Administrator has deleted anInvite
.AnInvite
has been updated.An Administrator has kicked a member.An Administrator updated the roles of a member.AMember
was either updated by an administrator or the member updated itself.One or more members were disconnected from a voice channel by an AdministratorOne or more members were moved from one voice channel to another by an AdministratorAn Administrator has performed a bulk delete of messages in a channelA message was created.An Administrator has deleted one or moreMessages
.An Administrator has pinned a message in the channelAn Administrator has unpinned a message in the channelA message was updated.An Administrator has pruned members for inactivity.An Administrator has created aRole
.An Administrator has deleted aRole
.An Administrator has updated aRole
.A user created aScheduledEvent
A user deleted/cancelled aScheduledEvent
A user updated aScheduledEvent
AStageInstance
was started by aStage Moderator
.AStageInstance
was deleted by aStage Moderator
.AStageInstance
was updated by aStage Moderator
.An Administrator created aGuildSticker
.An Administrator deleted aGuildSticker
.An Administrator updated aGuildSticker
.A user created aThreadChannel
A user deleted aThreadChannel
A user updated aThreadChannel
An Administrator has unbanned a user.A user removed thestatus
of a voice channel.A user updated thestatus
of a voice channel.An Administrator has created aWebhook
.An Administrator has deleted aWebhook
.An Administrator has updated aWebhook
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionType
from
(int key) int
getKey()
The raw key used to identify types within the api.The expectedTargetType
for this ActionTypestatic ActionType
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 Details
-
GUILD_UPDATE
An Administrator updatedGuild
information.Possible Keys
-
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
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
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
-
CHANNEL_OVERRIDE_UPDATE
-
CHANNEL_OVERRIDE_DELETE
-
KICK
An Administrator has kicked a member. -
PRUNE
An Administrator has pruned members for inactivity.Possible Options
-
BAN
An Administrator has banned a user. -
UNBAN
An Administrator has unbanned a user. -
MEMBER_UPDATE
AMember
was either updated by an administrator or the member updated itself.Possible Keys
-
MEMBER_ROLE_UPDATE
An Administrator updated the roles of a member.Possible Keys
-
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
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
An Administrator has added a bot to the server. -
ROLE_CREATE
An Administrator has created aRole
.Possible Keys
-
ROLE_UPDATE
An Administrator has updated aRole
.Possible Keys
-
ROLE_DELETE
An Administrator has deleted aRole
.Possible Keys
-
INVITE_CREATE
Someone has created anInvite
.Possible Keys
-
INVITE_UPDATE
AnInvite
has been updated. -
INVITE_DELETE
An Administrator has deleted anInvite
.Possible Keys
-
WEBHOOK_CREATE
-
WEBHOOK_UPDATE
-
WEBHOOK_REMOVE
-
EMOJI_CREATE
-
EMOJI_UPDATE
An Administrator updated anCustom Emoji
.Possible Keys
-
EMOJI_DELETE
-
MESSAGE_CREATE
A message was created. -
MESSAGE_UPDATE
A message was updated. -
MESSAGE_DELETE
-
MESSAGE_BULK_DELETE
An Administrator has performed a bulk delete of messages in a channelPossible Options
-
MESSAGE_PIN
An Administrator has pinned a message in the channelPossible Options
-
MESSAGE_UNPIN
An Administrator has unpinned a message in the channelPossible Options
-
INTEGRATION_CREATE
An Administrator has added an integration to the guild -
INTEGRATION_UPDATE
An Administrator has updated an integration of the guild -
INTEGRATION_DELETE
An Administrator has removed an integration from the guild -
STAGE_INSTANCE_CREATE
-
STAGE_INSTANCE_UPDATE
-
STAGE_INSTANCE_DELETE
-
SCHEDULED_EVENT_CREATE
A user created aScheduledEvent
-
SCHEDULED_EVENT_UPDATE
A user updated aScheduledEvent
-
SCHEDULED_EVENT_DELETE
A user deleted/cancelled aScheduledEvent
-
STICKER_CREATE
An Administrator created aGuildSticker
.Possible Keys
-
STICKER_UPDATE
-
STICKER_DELETE
-
THREAD_CREATE
A user created aThreadChannel
Possible Keys
-
THREAD_UPDATE
A user updated aThreadChannel
Possible Keys
-
THREAD_DELETE
A user deleted aThreadChannel
-
APPLICATION_COMMAND_PRIVILEGES_UPDATE
A moderator updated the privileges for an application -
AUTO_MODERATION_RULE_CREATE
A moderator created a newAutoModRule
-
AUTO_MODERATION_RULE_UPDATE
A moderator updated an existingAutoModRule
-
AUTO_MODERATION_RULE_DELETE
A moderator deleted an existingAutoModRule
-
AUTO_MODERATION_RULE_BLOCK_MESSAGE
An automod rule blocked a message from being sentPossible Keys
-
AUTO_MODERATION_FLAG_TO_CHANNEL
An automod rule sent an alert to a channelPossible Keys
-
AUTO_MODERATION_MEMBER_TIMEOUT
An automod rule put a user intimeout
Possible Keys
-
VOICE_CHANNEL_STATUS_UPDATE
-
VOICE_CHANNEL_STATUS_DELETE
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
The expectedTargetType
for this ActionType- Returns:
TargetType
-
from
-