Browse Source

Don't crash if an invite has no inviter info

pull/6/head
Brandon Smith 9 years ago
parent
commit
f61881526a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Models/Invite.cs

+ 1
- 1
src/Discord.Net/Models/Invite.cs View File

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




Loading…
Cancel
Save