diff options
Diffstat (limited to 'discord/audit_logs.py')
| -rw-r--r-- | discord/audit_logs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/audit_logs.py b/discord/audit_logs.py index fb94d9fa..fbb0f5a3 100644 --- a/discord/audit_logs.py +++ b/discord/audit_logs.py @@ -290,9 +290,9 @@ class AuditLogEntry(Hashable): # the overwrite_ actions have a dict with some information instance_id = int(self.extra['id']) the_type = self.extra.get('type') - if the_type == 'member': + if the_type == '1': self.extra = self._get_member(instance_id) - else: + elif the_type == '0': role = self.guild.get_role(instance_id) if role is None: role = Object(id=instance_id) |