Interface

APIGuildAuditLogEntry

Audit log entry from GET /guilds/{id}/audit-logs.

Properties

action_type: AuditLogActionType

Action type (see AuditLogActionType).

changes?: Array<{ key: string; old_value?: string | number | boolean | null; new_value?: string | number | boolean | null; }>

Changed fields; value types vary by action_type (e.g. string for name, number for permissions).

id: string

Entry ID.

options?: Record<string, string>

Action-specific metadata (e.g. role name, channel name).

reason?: string | null

Reason provided for the action.

target_id?: Snowflake | null

Target entity ID (channel, member, role, etc.).

user_id?: Snowflake | null

User who performed the action.