Table of Contents

Class DiscordAuditLogEntry

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a Discord audit log entry.

public abstract class DiscordAuditLogEntry : SnowflakeObject
Inheritance
DiscordAuditLogEntry
Derived
Inherited Members

Remarks

The base type preserves Discord's common audit log fields for both documented and undocumented action types. Dedicated subclasses add typed targets for stable entry families, while raw changes and raw options remain available for forward compatibility.

Properties

ActionCategory

Gets the action category.

ActionType

Gets the action type.

Actor

Gets the acting user.

Changes

Gets the entry changes.

Guild

Gets the guild the entry belongs to.

HasChanges

Gets whether this entry has changes.

Options

Gets the typed options object, if present.

RawChanges

Gets the raw change objects.

RawOptions

Gets the raw options object.

Reason

Gets the reason for the audit log entry.

TargetId

Gets the raw Discord target id.

Methods

GetChange(string)

Gets a change by key, or null if not present.

HydrateAllAsync(bool, CancellationToken)

Hydrates the actor, primary target, and related references for this entry.

HydrateAsync(AuditLogHydrationTargets, bool, CancellationToken)

Replaces audit log placeholder references with cached or freshly fetched live entities.

TryGetChange(string, out DiscordAuditLogChange)

Tries to get a change by key.