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:
parent
f0a6c8faff
commit
b79be8a876
8 changed files with 192 additions and 75 deletions
25
Boyfriend/Data/MemberData.cs
Normal file
25
Boyfriend/Data/MemberData.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue