mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-04 02:52:33 +00:00
Don't assume the inviter is always there.
This commit is contained in:
parent
95451c35e7
commit
b13d437bb9
@ -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…
x
Reference in New Issue
Block a user