First pass at supporting v8 API

This commit is contained in:
Rapptz
2021-04-10 23:24:44 -04:00
parent 7f91ae8b67
commit d85805ab6d
7 changed files with 39 additions and 37 deletions

View File

@ -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)