Package org.javacord.api.entity.auditlog
Interface AuditLogEntry
-
- All Superinterfaces:
DiscordEntity
public interface AuditLogEntry extends DiscordEntity
The interface represents an audit log entry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AuditLoggetAuditLog()Gets the audit log this entry belongs to.default java.util.concurrent.CompletableFuture<AuditLog>getAuditLogBefore(int limit)Gets the audit log before this entry.default java.util.concurrent.CompletableFuture<AuditLog>getAuditLogBefore(int limit, AuditLogActionType type)Gets the audit log before this entry.java.util.List<AuditLogChange<?>>getChanges()Gets all changes.java.util.Optional<java.lang.String>getReason()Gets the reason for the change.java.util.Optional<AuditLogEntryTarget>getTarget()Gets the target of the entry.AuditLogActionTypegetType()Gets the type of the entry.java.util.concurrent.CompletableFuture<User>getUser()Gets the user who made the changes.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
-
-
-
Method Detail
-
getAuditLog
AuditLog getAuditLog()
Gets the audit log this entry belongs to.- Returns:
- The audit log this entry belong to.
-
getUser
java.util.concurrent.CompletableFuture<User> getUser()
Gets the user who made the changes.- Returns:
- The user who made the changes.
-
getReason
java.util.Optional<java.lang.String> getReason()
Gets the reason for the change.- Returns:
- The reason for the change.
-
getType
AuditLogActionType getType()
Gets the type of the entry.- Returns:
- The type of the entry.
-
getTarget
java.util.Optional<AuditLogEntryTarget> getTarget()
Gets the target of the entry.- Returns:
- The target of the entry.
-
getChanges
java.util.List<AuditLogChange<?>> getChanges()
Gets all changes.- Returns:
- All changes.
-
getAuditLogBefore
default java.util.concurrent.CompletableFuture<AuditLog> getAuditLogBefore(int limit)
Gets the audit log before this entry.- Parameters:
limit- The maximum amount of audit log entries.- Returns:
- The audit log.
-
getAuditLogBefore
default java.util.concurrent.CompletableFuture<AuditLog> getAuditLogBefore(int limit, AuditLogActionType type)
Gets the audit log before this entry.- Parameters:
limit- The maximum amount of audit log entries.type- The action type of the audit log.- Returns:
- The audit log.
-
-