Audit log role add and removes are lists, not single item.

Breaking change. role -> roles and it's now a list.
This commit is contained in:
Rapptz
2017-05-06 16:24:14 -04:00
parent d7153b1b5c
commit 7916878eb5
2 changed files with 19 additions and 14 deletions

View File

@ -915,7 +915,7 @@ All enumerations are subclasses of `enum`_.
Possible attributes for :class:`AuditLogDiff`:
- :attr:`~AuditLogDiff.role`
- :attr:`~AuditLogDiff.roles`
.. attribute:: role_create
@ -1375,12 +1375,12 @@ this goal, it must make use of a couple of data classes that aid in this goal.
a ``type`` attribute set to either ``'role'`` or ``'member'`` to help
decide what type of ID it is.
.. attribute:: role
.. attribute:: roles
*Union[:class:`Role`, :class:`Object`]* A role being added or removed
*List[Union[:class:`Role`, :class:`Object`]]* A list of roles being added or removed
from a member.
If the role is not found then it is a :class:`Object` with the ID being
If a role is not found then it is a :class:`Object` with the ID being
filled in.
.. attribute:: nick