mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-02 20:19:55 +03:00
Keep adapting code to new guild data storage...
Fix #15, update InspectCode, make Dependabot use the correct label
This commit is contained in:
parent
fe2cfb3b3c
commit
4b2d98c440
16 changed files with 152 additions and 131 deletions
|
@ -3,23 +3,23 @@
|
|||
namespace Boyfriend.Data;
|
||||
|
||||
public record MemberData {
|
||||
public long BannedUntil;
|
||||
public DateTimeOffset BannedUntil;
|
||||
public ulong Id;
|
||||
public bool IsInGuild;
|
||||
public List<long> JoinedAt;
|
||||
public List<long> LeftAt;
|
||||
public long MutedUntil;
|
||||
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<long> { user.JoinedAt!.Value.ToUnixTimeSeconds() };
|
||||
LeftAt = new List<long>();
|
||||
JoinedAt = new List<DateTimeOffset> { user.JoinedAt!.Value };
|
||||
LeftAt = new List<DateTimeOffset>();
|
||||
Roles = user.RoleIds.ToList();
|
||||
Reminders = new List<Reminder>();
|
||||
MutedUntil = 0;
|
||||
BannedUntil = 0;
|
||||
MutedUntil = DateTimeOffset.MinValue;
|
||||
BannedUntil = DateTimeOffset.MinValue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue