mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 02:08:25 +00:00
Fall back to Object for AuditLogEntry.target
Co-authored-by: zephyrkul <zephyrkul@users.noreply.github.com>
This commit is contained in:
18
docs/api.rst
18
docs/api.rst
@ -2061,7 +2061,7 @@ of :class:`enum.Enum`.
|
||||
A member was kicked.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`User` who got kicked.
|
||||
the :class:`User` or :class:`Object` who got kicked.
|
||||
|
||||
When this is the action, :attr:`~AuditLogEntry.changes` is empty.
|
||||
|
||||
@ -2085,7 +2085,7 @@ of :class:`enum.Enum`.
|
||||
A member was banned.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`User` who got banned.
|
||||
the :class:`User` or :class:`Object` who got banned.
|
||||
|
||||
When this is the action, :attr:`~AuditLogEntry.changes` is empty.
|
||||
|
||||
@ -2094,7 +2094,7 @@ of :class:`enum.Enum`.
|
||||
A member was unbanned.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`User` who got unbanned.
|
||||
the :class:`User` or :class:`Object` who got unbanned.
|
||||
|
||||
When this is the action, :attr:`~AuditLogEntry.changes` is empty.
|
||||
|
||||
@ -2106,7 +2106,7 @@ of :class:`enum.Enum`.
|
||||
- They were server muted or deafened (or it was undo'd)
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member` or :class:`User` who got updated.
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` who got updated.
|
||||
|
||||
Possible attributes for :class:`AuditLogDiff`:
|
||||
|
||||
@ -2121,7 +2121,7 @@ of :class:`enum.Enum`.
|
||||
either gains a role or loses a role.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member` or :class:`User` who got the role.
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` who got the role.
|
||||
|
||||
Possible attributes for :class:`AuditLogDiff`:
|
||||
|
||||
@ -2157,7 +2157,7 @@ of :class:`enum.Enum`.
|
||||
A bot was added to the guild.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member` or :class:`User` which was added to the guild.
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` which was added to the guild.
|
||||
|
||||
.. versionadded:: 1.3
|
||||
|
||||
@ -2338,7 +2338,7 @@ of :class:`enum.Enum`.
|
||||
only triggers if the message was deleted by someone other than the author.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member` or :class:`User` who had their message deleted.
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` who had their message deleted.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
|
||||
set to an unspecified proxy object with two attributes:
|
||||
@ -2365,7 +2365,7 @@ of :class:`enum.Enum`.
|
||||
A message was pinned in a channel.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member` or :class:`User` who had their message pinned.
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` who had their message pinned.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
|
||||
set to an unspecified proxy object with two attributes:
|
||||
@ -2380,7 +2380,7 @@ of :class:`enum.Enum`.
|
||||
A message was unpinned in a channel.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.target` is
|
||||
the :class:`Member` or :class:`User` who had their message unpinned.
|
||||
the :class:`Member`, :class:`User`, or :class:`Object` who had their message unpinned.
|
||||
|
||||
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
|
||||
set to an unspecified proxy object with two attributes:
|
||||
|
Reference in New Issue
Block a user