Skip to content

Commit 050220b

Browse files
authored
docs: clarify AuditLogAction.overwrite_create (#1227)
1 parent 47f2872 commit 050220b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

changelog/1180.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adding some clarifying documentation around the type of :attr:`AuditLogEntry.extra` when the action is :attr:`~AuditLogAction.overwrite_create`.

docs/api/audit_logs.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,8 @@ AuditLogAction
861861

862862
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
863863
either a :class:`Role` or :class:`Member`. If the object is not found
864-
then it is a :class:`Object` with an ID being filled, a name, and a
865-
``type`` attribute set to either ``'role'`` or ``'member'`` to help
866-
dictate what type of ID it is.
864+
then it is a :class:`Object` with an ID being filled, additionally if the object
865+
refers to a role then the :class:`Object` has also a ``name`` attribute.
867866

868867
Possible attributes for :class:`AuditLogDiff`:
869868

0 commit comments

Comments
 (0)