From 140be3e4c8aa4000df7bb351230cb6d5556a9bbb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 7 May 2017 12:05:10 -0400 Subject: [PATCH] Make AuditLogDiff.roles an empty list instead of None. --- discord/audit_logs.py | 2 +- docs/api.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/audit_logs.py b/discord/audit_logs.py index 9c251eddc..f17f5fb61 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -157,7 +157,7 @@ class AuditLogChanges: self.before.color = self.before.colour def _handle_role(self, first, second, entry, elem): - setattr(first, 'roles', None) + setattr(first, 'roles', []) data = [] roles = entry.guild.roles diff --git a/docs/api.rst b/docs/api.rst index 255a20b91..dfcfe461d 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 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. .. attribute:: nick