AuditLog
Whenever an admin action is performed on the API, an audit log entry is added to the respective guild's audit logs. This class represents a requested collections of these entries.
Attributes application_commands :
A dictionary that contains the mentioned application commands by the audi log entries. The keys are the id
-s of the application commands, meanwhile the values are the application commands themselves.
A dictionary that contains the auto moderation rules mentioned inside of the audit log entries. The keys are the id
-s of the rules and the values are the rules themselves.
list
of AuditLogEntry
A list of audit log entries that the audit log contains.
int
The audit logs' respective guild's identifier.
A dictionary that contains the mentioned integrations by the audit log's entries. The keys are the id
-s of the integrations, meanwhile the values are the integrations themselves.
A dictionary containing the scheduled events mentioned inside of the audit logs.
A dictionary containing the mentioned threads inside of the audit logs.
A dictionary that contains the mentioned users by the audit log's entries. The keys are the id
-s of the users, meanwhile the values are the users themselves.
A dictionary that contains the mentioned webhook by the audit log's entries. The keys are the id
-s of the webhooks, meanwhile the values are the values themselves.
Weak reference to the audit log itself.
Properties
guild
Methods
(data, ...)
__new__Creates an AuditLog
from the data received from Discord.
Parameter | Type | Optional | Default | Description |
---|---|---|---|---|
data |
| Data received from Discord. | ||
guild_id |
|
| The respective guild's identifier of the audit logs. |
()
_get_self_reference(data)
_populatePopulates the audit log entry with the given data.
Parameter | Type | Description |
---|---|---|
data |
| Audit log data. |
Returns
populated : bool
Whether any entry was added to the audit log.
()
__getattr__Drops a rich attribute error.
()
__getitem__Returns the specific audit log entry at the given index.
()
__iter__Iterates over the audit log's entries.
()
__len__Returns the amount of entries that the audit lgo contain.
()
__repr__Returns the representation of the Audit log.
()
__reversed__Reversed iterator over the audit log's entries.