Interface

APIGuildAuditLogEntry

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

Properties

NameTypeDescription
action_typeAuditLogActionTypeAction 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).
idstringEntry ID.
options?Record<string, string>Action-specific metadata (e.g. role name, channel name).
reason?stringReason provided for the action.
target_id?Snowflake | nullTarget entity ID (channel, member, role, etc.).
user_id?Snowflake | nullUser who performed the action.