mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 02:09:49 +00:00
Skip None action types when iterating.
This commit is contained in:
parent
dff6bcc745
commit
eb58ddffd8
@ -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…
x
Reference in New Issue
Block a user