java.io.Serializable
, java.lang.Comparable<ActionType>
public enum ActionType extends java.lang.Enum<ActionType>
Enum Constant | Description |
---|---|
BAN |
An Administrator has banned a user.
|
CHANNEL_CREATE |
An Administrator created a
Channel |
CHANNEL_DELETE |
An Administrator deleted a
Channel . |
CHANNEL_OVERRIDE_CREATE |
An Administrator created a
PermissionOverride . |
CHANNEL_OVERRIDE_DELETE |
An Administrator deleted a
PermissionOverride . |
CHANNEL_OVERRIDE_UPDATE |
An Administrator updated
PermissionOverride information. |
CHANNEL_UPDATE |
An Administrator updated
Channel information. |
EMOTE_CREATE |
An Administrator created an
Emote . |
EMOTE_DELETE |
An Administrator deleted an
Emote . |
EMOTE_UPDATE |
An Administrator updated an
Emote . |
GUILD_UPDATE |
An Administrator updated
Guild information. |
INVITE_CREATE |
Someone has created an
Invite . |
INVITE_DELETE |
An Administrator has deleted an
Invite . |
INVITE_UPDATE |
An
Invite has been updated. |
KICK |
An Administrator has kicked a member.
|
MEMBER_ROLE_UPDATE |
An Administrator updated the roles of a member.
|
MEMBER_UPDATE |
A
Member 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 more
Messages . |
MESSAGE_UPDATE |
A message was updated.
|
PRUNE |
An Administrator has pruned members for inactivity.
|
ROLE_CREATE |
An Administrator has created a
Role . |
ROLE_DELETE |
An Administrator has deleted a
Role . |
ROLE_UPDATE |
An Administrator has updated a
Role . |
UNBAN |
An Administrator has unbanned a user.
|
UNKNOWN |
|
WEBHOOK_CREATE |
An Administrator has created a
Webhook . |
WEBHOOK_REMOVE |
An Administrator has deleted a
Webhook . |
WEBHOOK_UPDATE |
An Administrator has updated a
Webhook . |
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 expected
TargetType
for this ActionType |
static 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.
|
public static final ActionType GUILD_UPDATE
Guild
information.
public static final ActionType CHANNEL_CREATE
Channel
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
public static final ActionType CHANNEL_UPDATE
Channel
information.
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
public static final ActionType CHANNEL_DELETE
Channel
.
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
public static final ActionType CHANNEL_OVERRIDE_CREATE
public static final ActionType CHANNEL_OVERRIDE_UPDATE
public static final ActionType CHANNEL_OVERRIDE_DELETE
public static final ActionType KICK
public static final ActionType PRUNE
public static final ActionType BAN
public static final ActionType UNBAN
public static final ActionType MEMBER_UPDATE
Member
was either updated by an administrator or
the member updated itself.
public static final ActionType MEMBER_ROLE_UPDATE
public static final ActionType ROLE_CREATE
Role
.
public static final ActionType ROLE_UPDATE
Role
.
public static final ActionType ROLE_DELETE
Role
.
public static final ActionType INVITE_CREATE
Invite
.
public static final ActionType INVITE_UPDATE
Invite
has been updated.public static final ActionType INVITE_DELETE
Invite
.
public static final ActionType WEBHOOK_CREATE
public static final ActionType WEBHOOK_UPDATE
public static final ActionType WEBHOOK_REMOVE
public static final ActionType EMOTE_CREATE
public static final ActionType EMOTE_UPDATE
public static final ActionType EMOTE_DELETE
public static final ActionType MESSAGE_CREATE
public static final ActionType MESSAGE_UPDATE
public static final ActionType MESSAGE_DELETE
public static final ActionType UNKNOWN
public static ActionType[] values()
for (ActionType c : ActionType.values()) System.out.println(c);
public static ActionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getKey()
public TargetType getTargetType()
TargetType
for this ActionTypeTargetType
public static ActionType from(int key)