Class: GuildAuditLogs

GuildAuditLogs

Audit logs entries are held in this class.

Constructor

new GuildAuditLogs()

Source:

Members

(static) Actions :AuditLogAction

All available actions keyed under their names to their numeric values.
Type:
Source:

(static) Targets :AuditLogTargetType

Key mirror of all available audit log targets.
Type:
Source:

entries :Collection.<Snowflake, GuildAuditLogsEntry>

The entries for this guild's audit logs
Type:
Source:

(private) integrations :Collection.<Snowflake, Integration>

Cached integrations
Type:
Source:

(private) webhooks :Collection.<Snowflake, Webhook>

Cached webhooks
Type:
Source:

Methods

(static) actionType(action) → {AuditLogActionType}

Finds the action type from the entry action.
Parameters:
Name Type Description
action AuditLogAction The action target
Source:
Returns:
Type
AuditLogActionType

(static) build() → {Promise.<GuildAuditLogs>}

Handles possible promises for entry targets.
Source:
Returns:
Type
Promise.<GuildAuditLogs>

(static) targetType(target) → {AuditLogTargetType}

Finds the target type from the entry action.
Parameters:
Name Type Description
target AuditLogAction The action target
Source:
Returns:
Type
AuditLogTargetType