mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Add support for integration_type in audit logs
Currently unsure whether more processing is meant to be done with this, but for now an Optional[str] is the best I can do without more data.
This commit is contained in:
10
docs/api.rst
10
docs/api.rst
@ -2106,6 +2106,11 @@ of :class:`enum.Enum`.
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`User` or :class:`Object` who got kicked.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
|
||||
set to an unspecified proxy object with one attribute:
|
||||
|
||||
- ``integration_type``: An optional string that denotes the type of integration that did the action.
|
||||
|
||||
When this is the action, :attr:`~AuditLogEntry.changes` is empty.
|
||||
|
||||
.. attribute:: member_prune
|
||||
@ -2166,6 +2171,11 @@ of :class:`enum.Enum`.
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` who got the role.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
|
||||
set to an unspecified proxy object with one attribute:
|
||||
|
||||
- ``integration_type``: An optional string that denotes the type of integration that did the action.
|
||||
|
||||
Possible attributes for :class:`AuditLogDiff`:
|
||||
|
||||
- :attr:`~AuditLogDiff.roles`
|
||||
|
Reference in New Issue
Block a user