Interface
APIGuildAuditLogEntry
Audit log entry from GET /guilds/{id}/audit-logs.
Properties
action_type
: AuditLogActionTypeAction 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
: stringEntry ID.
options
?: Record<string, string>Action-specific metadata (e.g. role name, channel name).
reason
?: string | nullReason provided for the action.
target_id
?: Snowflake | nullTarget entity ID (channel, member, role, etc.).
user_id
?: Snowflake | nullUser who performed the action.