Skip to content

GuildAuditLogs ​

classe · Source

Audit logs entries are held in this class.

Properties ​

webhooks ​

private

webhooks: Collection<Snowflake, Webhook>

Cached webhooks Source

integrations ​

private

integrations: Collection<(Snowflake|string), Integration>

Cached integrations Source

applicationCommands ​

private

applicationCommands: Collection<Snowflake, ApplicationCommand>

Cached application commands, includes application commands from other applications Source

autoModerationRules ​

private

autoModerationRules: Collection<Snowflake, AutoModerationRule>

Cached auto moderation rules. Source

entries ​

entries: Collection<Snowflake, GuildAuditLogsEntry>

The entries for this guild's audit logs Source

Targets ​

static

Targets: Object<string, string>

Key mirror of all available audit log targets. Source

Actions ​

static

Actions: Object<string, number>

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

Methods ​

build ​

static · async

async build(): Promise<GuildAuditLogs>

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

targetType ​

static

targetType(target: AuditLogAction): AuditLogTargetType

Finds the target type from the entry action. Parameters

NameTypeDescription
targetAuditLogActionThe action target

Returns: AuditLogTargetTypeSource

actionType ​

static

actionType(action: AuditLogAction): AuditLogActionType

Finds the action type from the entry action. Parameters

NameTypeDescription
actionAuditLogActionThe action target

Returns: AuditLogActionTypeSource

Unofficial software. Not affiliated with or supported by Discord.