Browse Source

Skip None action types when iterating.

pull/572/head
Rapptz 8 years ago
parent
commit
eb58ddffd8
  1. 4
      discord/iterators.py

4
discord/iterators.py

@ -477,4 +477,8 @@ class AuditLogIterator(_AsyncIterator):
self._users[u.id] = u
for element in data:
# TODO: remove this if statement later
if element['action_type'] is None:
continue
yield from self.entries.put(AuditLogEntry(data=element, users=self._users, guild=self.guild))

Loading…
Cancel
Save