class GuildAuditLogsEntry

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

optional
TAction? extends AuditLogEvent = AuditLogEvent

optional
TActionType? extends GuildAuditLogsActionType = TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : 'All'

optional
TTargetType? 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

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

Any extra data from the entry

id : Snowflake

The entry's id

reason : string | null

The reason of this entry

targetId : Snowflake | null

The id of the target of this entry

static
Targets : GuildAuditLogsTargets

Key mirror of all available audit log targets.

targetType : TTargetType

The target type of this entry

static
actionType() : GuildAuditLogsActionType

Finds the action type from the guild audit log entry action.

isAction<

TCheckAction extends TAction

>(
action: TCheckAction
) : this is GuildAuditLogsEntry<TCheckAction, TCheckAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TCheckAction][1] : 'All', TCheckAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TCheckAction][0] : 'Unknown'>

Checks whether this GuildAuditLogsEntry is of the specified AuditLogEvent type.

static
targetType() : GuildAuditLogsTargetType

Finds the target type of a guild audit log entry.

toJSON() : unknown