Audit¶
discord_http.audit module¶
- class discord_http.audit.AuditChange(*, entry, data)¶
Bases:
objectRepresents a change in an audit log entry.
- Parameters:
entry (AuditLogEntry)
data (dict)
- entry¶
The audit log entry this change belongs to.
- class discord_http.audit.AuditLogEntry(*, state, data, guild=None, users=None)¶
Bases:
SnowflakeRepresents an entry in an audit log.
- Parameters:
state (DiscordAPI)
data (dict)
guild (PartialGuild | None)
- guild: PartialGuild¶
The guild this audit log entry belongs to.
- action_type: AuditLogType¶
The type of action that was performed.
- changes: list[AuditChange]¶
A list of changes made in this audit log entry.
- property user: User | PartialUser | None¶
Returns the user object of the audit log if available.