interface APIAuditLogEntry {
    action_type: AuditLogEvent;
    changes?: APIAuditLogChange[];
    id: string;
    options?: APIAuditLogOptions;
    reason?: string;
    target_id: null | string;
    user_id: null | string;
}

Hierarchy (View Summary)

Properties

action_type: AuditLogEvent

Type of action that occurred

changes?: APIAuditLogChange[]

Changes made to the target_id

id: string

ID of the entry

Additional info for certain action types

reason?: string

The reason for the change (0-512 characters)

target_id: null | string

ID of the affected entity (webhook, user, role, etc.)

user_id: null | string

The user who made the changes

This can be null in some cases (webhooks deleting themselves by using their own token, for example)