1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-02 20:19:55 +03:00

Begin guild storage refactor

This commit is contained in:
Octol1ttle 2022-12-21 21:59:21 +05:00
parent f0a6c8faff
commit b79be8a876
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
8 changed files with 192 additions and 75 deletions

View file

@ -0,0 +1,25 @@
using Discord;
namespace Boyfriend.Data;
public record MemberData {
public long BannedUntil;
public ulong Id;
public bool IsInGuild;
public List<long> JoinedAt;
public List<long> LeftAt;
public long 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>();
Roles = user.RoleIds.ToList();
Reminders = new List<Reminder>();
MutedUntil = 0;
BannedUntil = 0;
}
}