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 CompletableFuture<AuditLog>getAuditLogBefore(int limit)Gets the audit log before this entry.default CompletableFuture<AuditLog>getAuditLogBefore(int limit, AuditLogActionType type)Gets the audit log before this entry.List<AuditLogChange<?>>getChanges()Gets a list with all changes.Optional<String>getReason()Gets the reason for the change.Optional<AuditLogEntryTarget>getTarget()Gets the target of the entry.AuditLogActionTypegetType()Gets the type of the entry.CompletableFuture<User>getUser()Gets the user who made the changes.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, 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
CompletableFuture<User> getUser()
Gets the user who made the changes.- Returns:
- The user who made the changes.
-
getReason
Optional<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
Optional<AuditLogEntryTarget> getTarget()
Gets the target of the entry.- Returns:
- The target of the entry.
-
getChanges
List<AuditLogChange<?>> getChanges()
Gets a list with all changes.- Returns:
- A list with all changes.
-
getAuditLogBefore
default 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 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.
-
-