AuditLogEntry
AuditLogEntry ⇐ Base
Represents an entry in the audit log.
Kind: global class
Extends: Base
Properties
Name | Type | Description |
---|---|---|
targetId | string | null | The ID of the target of the audit log entry. |
changes | Array.<Object> | An array of objects representing the changes made in the audit log entry. |
userId | string | null | The ID of the user who performed the action in the audit log entry. |
id | string | null | The ID of the audit log entry. |
actionType | string | null | The type of action performed |
- AuditLogEntry ⇐
Base
- new AuditLogEntry([data], client)
- .executor ⇒
- .isUpdate() ⇒
boolean
new AuditLogEntry([data], client)
Constructs a new instance of the class.
Param | Type | Description |
---|---|---|
[data] | Object | The data for the audit log entry. |
client | Client | The 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.