mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-02-01 01:29:00 +03:00
Octol1ttle
e9f7825e4a
This PR backfills member data when a guild is loaded or a new member joins it. The reason for that is some actions that happen on member tick (default role grant, nickname filtering) would only occur if a member had data related to them (due to being banned or setting a reminder). In addition, the `.editorconfig` was updated with new inspections provided by a new release of Rider, 2023.2 See explanations for some changes in comments. --------- Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
18 lines
454 B
C#
18 lines
454 B
C#
namespace Boyfriend.Data;
|
|
|
|
/// <summary>
|
|
/// Stores information about a member
|
|
/// </summary>
|
|
public sealed class MemberData
|
|
{
|
|
public MemberData(ulong id, DateTimeOffset? bannedUntil = null)
|
|
{
|
|
Id = id;
|
|
BannedUntil = bannedUntil;
|
|
}
|
|
|
|
public ulong Id { get; }
|
|
public DateTimeOffset? BannedUntil { get; set; }
|
|
public List<ulong> Roles { get; set; } = new();
|
|
public List<Reminder> Reminders { get; } = new();
|
|
}
|