Audit

discord_http.audit module

class discord_http.audit.AuditChange(*, entry: AuditLogEntry, data: dict)[source]

Bases: object

class discord_http.audit.AuditLogEntry(*, state: DiscordAPI, data: dict, guild: PartialGuild | None = None, users: dict[int, User] | None = None)[source]

Bases: Snowflake

property target: Snowflake | None

Snowflake | None: Returns the target object of the audit log

The Snowflake can be a PartialChannel, User, PartialRole, etc

property user: User | PartialUser | None

Returns the user object of the audit log if available

Type:

User