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:
Rapptz
2023-08-25 11:57:18 -04:00
parent a756df3d5c
commit 60ff239558
3 changed files with 20 additions and 0 deletions

View File

@ -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`