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:
parent
d2eb62e658
commit
2703196d46
1 changed files with 5 additions and 1 deletions
|
@ -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; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue