export class GuildAuditLogsEntry<TAction extends AuditLogEvent = AuditLogEvent, TActionType extends GuildAuditLogsActionType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : 'All', TTargetType extends GuildAuditLogsTargetType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : 'Unknown',>Audit logs entry.
Type Parameters
optionalTAction? extends AuditLogEvent = AuditLogEvent
optionalTActionType? extends GuildAuditLogsActionType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : 'All'
optionalTTargetType? extends GuildAuditLogsTargetType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : 'Unknown'
action : TAction
The type of action that occurred.
actionType : TActionType
The action type of this entry
changes : AuditLogChange[]
Specific property changes
readonlycreatedAt : Date
The time this entry was created at
readonlycreatedTimestamp : number
The timestamp this entry was created at
executor : User | PartialUser | null
The user that executed this entry
extra : TAction extends keyof GuildAuditLogsEntryExtraField ? GuildAuditLogsEntryExtraField[TAction] : null
Any extra data from the entry
id : Snowflake
The entry's id
target : TTargetType extends keyof GuildAuditLogsEntryTargetField<TAction> ? GuildAuditLogsEntryTargetField<TAction>[TTargetType] : { id: Snowflake | undefined; [x: string]: unknown } | null
The target of this entry
staticTargets : GuildAuditLogsTargets
Key mirror of all available audit log targets.
targetType : TTargetType
The target type of this entry
static actionType(action: AuditLogEvent) : GuildAuditLogsActionType
action: AuditLogEvent
Finds the action type from the guild audit log entry action.
static targetType(target: AuditLogEvent) : GuildAuditLogsTargetType
target: AuditLogEvent
Finds the target type of a guild audit log entry.