Browse Source

Don't assume the inviter is always there.

pull/451/merge
Rapptz 8 years ago
parent
commit
b13d437bb9
  1. 5
      discord/audit_logs.py

5
discord/audit_logs.py

@ -326,7 +326,10 @@ class AuditLogEntry:
}
obj = Invite(state=self._state, data=fake_payload)
obj.inviter = changeset.inviter
try:
obj.inviter = changeset.inviter
except AttributeError:
pass
return obj
def _convert_target_emoji(self, target_id):

Loading…
Cancel
Save