mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-16 18:59:09 +00:00
Make AuditLogDiff.roles an empty list instead of None.
This commit is contained in:
parent
eb58ddffd8
commit
140be3e4c8
@ -157,7 +157,7 @@ class AuditLogChanges:
|
|||||||
self.before.color = self.before.colour
|
self.before.color = self.before.colour
|
||||||
|
|
||||||
def _handle_role(self, first, second, entry, elem):
|
def _handle_role(self, first, second, entry, elem):
|
||||||
setattr(first, 'roles', None)
|
setattr(first, 'roles', [])
|
||||||
|
|
||||||
data = []
|
data = []
|
||||||
roles = entry.guild.roles
|
roles = entry.guild.roles
|
||||||
|
@ -1380,7 +1380,7 @@ this goal, it must make use of a couple of data classes that aid in this goal.
|
|||||||
*List[Union[:class:`Role`, :class:`Object`]]* – A list of roles being added or removed
|
*List[Union[:class:`Role`, :class:`Object`]]* – A list of roles being added or removed
|
||||||
from a member.
|
from a member.
|
||||||
|
|
||||||
If a 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 and name being
|
||||||
filled in.
|
filled in.
|
||||||
|
|
||||||
.. attribute:: nick
|
.. attribute:: nick
|
||||||
|
Loading…
x
Reference in New Issue
Block a user