GuildAuditLogs
classe · Source
Audit logs entries are held in this class.
Properties
webhooks
webhooks: Collection<Snowflake, Webhook>
Cached webhooks Source
integrations
integrations: Collection<(Snowflake|string), Integration>
Cached integrations Source
applicationCommands
applicationCommands: Collection<Snowflake, ApplicationCommand>
Cached application commands, includes application commands from other applications Source
autoModerationRules
autoModerationRules: Collection<Snowflake, AutoModerationRule>
Cached auto moderation rules. Source
entries
entries: Collection<Snowflake, GuildAuditLogsEntry>
The entries for this guild's audit logs Source
Targets
Targets: Object<string, string>
Key mirror of all available audit log targets. Source
Actions
Actions: Object<string, number>
All available actions keyed under their names to their numeric values. Source
Methods
build
async build(): Promise<GuildAuditLogs>
Handles possible promises for entry targets. Returns: Promise<GuildAuditLogs>Source
targetType
targetType(target: AuditLogAction): AuditLogTargetType
Finds the target type from the entry action. Parameters
| Name | Type | Description |
|---|---|---|
target | AuditLogAction | The action target |
Returns: AuditLogTargetTypeSource
actionType
actionType(action: AuditLogAction): AuditLogActionType
Finds the action type from the entry action. Parameters
| Name | Type | Description |
|---|---|---|
action | AuditLogAction | The action target |
Returns: AuditLogActionTypeSource