java.io.Serializable
, java.lang.Comparable<TargetType>
public enum TargetType extends java.lang.Enum<TargetType>
ActionType
This can be found via ActionType.getTargetType()
or AuditLogEntry.getTargetType()
.
This helps to decide what entity type the target id of an AuditLogEntry refers to.
entry.getTargetType()
is type GUILD
entry.getTargetId()
and entry.getTargetIdLong()
can be used with JDA.getGuildById(id)
Enum Constant | Description |
---|---|
CHANNEL |
|
EMOTE |
|
GUILD |
|
INVITE |
|
MEMBER |
|
ROLE |
|
UNKNOWN |
|
WEBHOOK |
Modifier and Type | Method | Description |
---|---|---|
static TargetType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TargetType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetType GUILD
public static final TargetType CHANNEL
public static final TargetType ROLE
public static final TargetType MEMBER
public static final TargetType INVITE
public static final TargetType WEBHOOK
public static final TargetType EMOTE
public static final TargetType UNKNOWN
public static TargetType[] values()
for (TargetType c : TargetType.values()) System.out.println(c);
public static TargetType 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 null