1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-13 17:26:08 +03:00

fix(reminders): add an optional constructor argument for reminders list for use by the deserializer

This commit is contained in:
Octol1ttle 2023-10-17 16:07:57 +05:00
parent d2eb62e658
commit 2703196d46
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -5,10 +5,14 @@ namespace Octobot.Data;
/// </summary> /// </summary>
public sealed class MemberData public sealed class MemberData
{ {
public MemberData(ulong id, DateTimeOffset? bannedUntil = null) public MemberData(ulong id, DateTimeOffset? bannedUntil = null, List<Reminder>? reminders = null)
{ {
Id = id; Id = id;
BannedUntil = bannedUntil; BannedUntil = bannedUntil;
if (reminders is not null)
{
Reminders = reminders;
}
} }
public ulong Id { get; } public ulong Id { get; }