Don't crash if an invite has no inviter info
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user