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
optionalAuditLogEvent = AuditLogEvent TAction? extends
optionalGuildAuditLogsActionType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : 'All' TActionType? extends
optionalGuildAuditLogsTargetType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : 'Unknown' TTargetType? extends
TAction action :
The type of action that occurred.
TActionType actionType :
The action type of this entry
AuditLogChange[] changes :
Specific property changes
readonlyDate createdAt :
The time this entry was created at
readonlynumber createdTimestamp :
The timestamp this entry was created at
TAction extends keyof GuildAuditLogsEntryExtraField ? GuildAuditLogsEntryExtraField[TAction] : null extra :
Any extra data from the entry
Snowflake id :
The entry's id
TTargetType extends keyof GuildAuditLogsEntryTargetField<TAction> ? GuildAuditLogsEntryTargetField<TAction>[TTargetType] : Role | GuildEmoji | { id: Snowflake } | null target :
The target of this entry
staticGuildAuditLogsTargets Targets :
Key mirror of all available audit log targets.
TTargetType targetType :
The target type of this entry
static actionTypeaction: AuditLogEvent) : GuildAuditLogsActionType (
action: AuditLogEvent
Finds the action type from the guild audit log entry action.
isActionTCheckAction extends TAction
>(action: TCheckAction) : this is GuildAuditLogsEntry<TCheckAction, TCheckAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TCheckAction][1] : 'All', TCheckAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TCheckAction][0] : 'Unknown'> <
TCheckAction extends TAction
action: TCheckAction
Checks whether this GuildAuditLogsEntry is of the specified AuditLogEvent type.
static targetTypetarget: AuditLogEvent) : GuildAuditLogsTargetType (
target: AuditLogEvent
Finds the target type of a guild audit log entry.