GuildAuditLogsEntry

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,>
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.
NameConstraintsOptionalDefaultDescription
TActionGuildAuditLogsResolvableYesAuditLogEventNone
TActionTypeGuildAuditLogsActionTypeYesTAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : GuildAuditLogsActionTypeNone
TTargetTypeGuildAuditLogsTargetTypeYesTAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : GuildAuditLogsTargetTypeNone
TResolvedTypeYesTAction extends null ? AuditLogEvent : TActionNone
action:TResolvedType
The type of action that occurred.
actionType:TActionType
The action type of this entry
changes:AuditLogChange[]
Specific property changes
Readonly
createdAt:Date
The time this entry was created at
Readonly
createdTimestamp:number
The timestamp this entry was created at
executor:User | null
The user that executed this entry
executorId:Snowflake | null
The id of the user that executed this entry
extra:TResolvedType extends keyof GuildAuditLogsEntryExtraField ? GuildAuditLogsEntryExtraField[TResolvedType] : null
Any extra data from the entry
The entry's id
reason:string | null
The reason of this entry
target:TTargetType extends keyof GuildAuditLogsEntryTargetField<TActionType> ? GuildAuditLogsEntryTargetField<TActionType>[TTargetType] : Role | GuildEmoji | { id: Snowflake } | null
The target of this entry
targetId:Snowflake | null
The id of the target of this entry
Static
Key mirror of all available audit log targets.
targetType:TTargetType
The target type of this entry
Static
actionType(action):GuildAuditLogsActionType
Finds the action type from the guild audit log entry action.
NameTypeOptionalDescription
actionAuditLogEventNoThe action target
Static
targetType(target):GuildAuditLogsTargetType
Finds the target type of a guild audit log entry.
NameTypeOptionalDescription
targetAuditLogEventNoThe action target
toJSON():unknown