public class AuditLogEntry extends Object implements Entity
Modifier and Type | Field and Description |
---|---|
static int |
MAX_REASON_LENGTH
The maximum amount of characters that can be in an audit log reason.
|
Constructor and Description |
---|
AuditLogEntry(ServiceMediator serviceMediator,
AuditLogEntryBean data) |
Modifier and Type | Method and Description |
---|---|
ActionType |
getActionType() |
<T> Optional<AuditLogChange<T>> |
getChange(ChangeKey<T> changeKey) |
DiscordClient |
getClient()
Gets the DiscordClient associated to this object.
|
Snowflake |
getId()
Gets the Snowflake that uniquely identifies this entity.
|
<T> Optional<T> |
getOption(OptionKey<T> optionKey) |
Optional<String> |
getReason() |
Snowflake |
getResponsibleUserId() |
Optional<Snowflake> |
getTargetId() |
String |
toString() |
public static final int MAX_REASON_LENGTH
public AuditLogEntry(ServiceMediator serviceMediator, AuditLogEntryBean data)
public Snowflake getResponsibleUserId()
public ActionType getActionType()
public <T> Optional<AuditLogChange<T>> getChange(ChangeKey<T> changeKey)
public Snowflake getId()
Entity
public DiscordClient getClient()
DiscordObject
getClient
in interface DiscordObject