Add missing audit log properties

This commit is contained in:
Josh
2022-02-19 11:36:51 +10:00
committed by GitHub
parent de85eacbf5
commit 352dcf9557
2 changed files with 50 additions and 2 deletions

View File

@@ -1940,6 +1940,7 @@ of :class:`enum.Enum`.
- :attr:`~AuditLogDiff.nick`
- :attr:`~AuditLogDiff.mute`
- :attr:`~AuditLogDiff.deaf`
- :attr:`~AuditLogDiff.timed_out_until`
.. attribute:: member_role_update
@@ -2350,6 +2351,7 @@ of :class:`enum.Enum`.
- :attr:`~AuditLogDiff.archived`
- :attr:`~AuditLogDiff.locked`
- :attr:`~AuditLogDiff.auto_archive_duration`
- :attr:`~AuditLogDiff.invitable`
.. versionadded:: 2.0
@@ -2367,6 +2369,7 @@ of :class:`enum.Enum`.
- :attr:`~AuditLogDiff.archived`
- :attr:`~AuditLogDiff.locked`
- :attr:`~AuditLogDiff.auto_archive_duration`
- :attr:`~AuditLogDiff.invitable`
.. versionadded:: 2.0
@@ -2384,6 +2387,7 @@ of :class:`enum.Enum`.
- :attr:`~AuditLogDiff.archived`
- :attr:`~AuditLogDiff.locked`
- :attr:`~AuditLogDiff.auto_archive_duration`
- :attr:`~AuditLogDiff.invitable`
.. versionadded:: 2.0
@@ -3266,6 +3270,43 @@ AuditLogDiff
:type: :class:`int`
.. attribute:: invitable
Whetheer non-moderators can add users to this private thread.
:type: :class:`bool`
.. attribute:: timed_out_until
Whether the user is timed out, and if so until when.
:type: Optional[:class:`datetime.datetime`]
.. attribute:: enable_emoticons
Integration emoticons were enabled or disabled.
see also :attr:`Integration.enable_emoticons`
:type: :class:`bool`
.. attribute:: expire_behaviour
expire_behavior
The behaviour of expiring subscribers changed.
see also :attr:`Integration.expire_grace_period`
:type: :class:`ExpireBehaviour`
.. attribute:: expire_grace_period
The grace period before expiring subscribers changed.
see also :attr:`Integration.expire_grace_period`
:type: :class:`int`
.. this is currently missing the following keys: reason and application_id
I'm not sure how to about porting these