1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00
Octobot/Boyfriend/Data/MemberData.cs
Octol1ttle 4b2d98c440
Keep adapting code to new guild data storage...
Fix #15, update InspectCode, make Dependabot use the correct label
2023-01-12 22:00:52 +05:00

25 lines
734 B
C#

using Discord;
namespace Boyfriend.Data;
public record MemberData {
public DateTimeOffset BannedUntil;
public ulong Id;
public bool IsInGuild;
public List<DateTimeOffset> JoinedAt;
public List<DateTimeOffset> LeftAt;
public DateTimeOffset MutedUntil;
public List<Reminder> Reminders;
public List<ulong> Roles;
public MemberData(IGuildUser user) {
Id = user.Id;
IsInGuild = true;
JoinedAt = new List<DateTimeOffset> { user.JoinedAt!.Value };
LeftAt = new List<DateTimeOffset>();
Roles = user.RoleIds.ToList();
Reminders = new List<Reminder>();
MutedUntil = DateTimeOffset.MinValue;
BannedUntil = DateTimeOffset.MinValue;
}
}