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

        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.
      • 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.