fix: Fixed attempting to access a non-present optional value (#1337)

This commit is contained in:
Casino Boyale
2019-06-30 00:09:01 +01:00
committed by Christopher F
parent 9da11b4184
commit 4edda5b729

View File

@@ -103,7 +103,7 @@ namespace Discord.Rest
Activity = new MessageActivity() Activity = new MessageActivity()
{ {
Type = model.Activity.Value.Type.Value, Type = model.Activity.Value.Type.Value,
PartyId = model.Activity.Value.PartyId.Value PartyId = model.Activity.Value.PartyId.GetValueOrDefault()
}; };
} }
} }