fix: Fixed attempting to access a non-present optional value (#1337)
This commit is contained in:
committed by
Christopher F
parent
9da11b4184
commit
4edda5b729
@@ -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()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user