Interface AuditLogEntry

  • All Superinterfaces:
    DiscordEntity

    public interface AuditLogEntry
    extends DiscordEntity
    The interface represents an audit log entry.
    • 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 a list with all changes.
        Returns:
        A list with 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.