export class GuildAuditLogsEntry<TAction extends GuildAuditLogsResolvable = AuditLogEvent, TActionType extends GuildAuditLogsActionType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : GuildAuditLogsActionType, TTargetType extends GuildAuditLogsTargetType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : GuildAuditLogsTargetType, TResolvedType = TAction extends null ? AuditLogEvent : TAction,>
Audit logs entry.
Type Parameters
optionalGuildAuditLogsResolvable = AuditLogEvent TAction? extends
optionalGuildAuditLogsActionType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : GuildAuditLogsActionType TActionType? extends
optionalGuildAuditLogsTargetType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : GuildAuditLogsTargetType TTargetType? extends
optionalTAction extends null ? AuditLogEvent : TAction TResolvedType? =
AuditLogChange[] changes :
Specific property changes
readonlyDate createdAt :
The time this entry was created at
readonlynumber createdTimestamp :
The timestamp this entry was created at
TResolvedType extends keyof GuildAuditLogsEntryExtraField ? GuildAuditLogsEntryExtraField[TResolvedType] : null extra :
Any extra data from the entry
Snowflake id :
The entry's id
TTargetType extends keyof GuildAuditLogsEntryTargetField<TActionType> ? GuildAuditLogsEntryTargetField<TActionType>[TTargetType] : Role | GuildEmoji | { id: Snowflake } | null target :
The target of this entry
staticGuildAuditLogsTargets Targets :
Key mirror of all available audit log targets.
static actionTypeaction: AuditLogEvent) : GuildAuditLogsActionType (
action: AuditLogEvent
Finds the action type from the guild audit log entry action.
static targetTypetarget: AuditLogEvent) : GuildAuditLogsTargetType (
target: AuditLogEvent
Finds the target type of a guild audit log entry.