Skip to content

AuditLogEntry

AuditLogEntry ⇐ Base

Represents an entry in the audit log.

Kind: global class
Extends: Base
Properties

NameTypeDescription
targetIdstring | nullThe ID of the target of the audit log entry.
changesArray.<Object>An array of objects representing the changes made in the audit log entry.
userIdstring | nullThe ID of the user who performed the action in the audit log entry.
idstring | nullThe ID of the audit log entry.
actionTypestring | nullThe type of action performed

new AuditLogEntry([data], client)

Constructs a new instance of the class.

ParamTypeDescription
[data]ObjectThe data for the audit log entry.
clientClientThe client instance.

auditLogEntry.executor ⇒

Retrieves the executor of the action.

Kind: instance property of AuditLogEntry
Returns: The user object representing the executor, or null if not found.

auditLogEntry.isUpdate() ⇒ boolean

Checks if the action type of the guild audit log entry is an update action.

Kind: instance method of AuditLogEntry
Returns: boolean - - True if the action type is an update action, false otherwise.