Don't crash if an invite has no inviter info

This commit is contained in:
Brandon Smith
2015-09-19 16:04:29 -03:00
parent 46b633e8de
commit f61881526a

View File

@@ -57,7 +57,7 @@ namespace Discord
internal void Update(Net.API.Invite model)
{
ChannelId = model.Channel.Id;
InviterId = model.Inviter.Id;
InviterId = model.Inviter?.Id;
ServerId = model.Guild.Id;
}