mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
- Cleaned up completed todos
- Config Data won't be copied every time it's accessed now, but YamlDotNet doesnt' support records, so data is dangerously mutable, needs solution
This commit is contained in:
@@ -40,7 +40,6 @@ namespace NadekoBot.Services
|
||||
public ConcurrentHashSet<ulong> UsersOnShortCooldown { get; } = new ConcurrentHashSet<ulong>();
|
||||
private readonly Timer _clearUsersOnShortCooldown;
|
||||
|
||||
// todo move behaviours to a separate service
|
||||
public CommandHandler(
|
||||
DiscordSocketClient client,
|
||||
DbService db,
|
||||
|
@@ -28,7 +28,9 @@ namespace NadekoBot.Services
|
||||
private readonly TypedKey<TSettings> _changeKey;
|
||||
|
||||
protected TSettings _data;
|
||||
public TSettings Data => CreateCopy();
|
||||
|
||||
// todo this has to be protected from mutation
|
||||
public TSettings Data => _data;
|
||||
|
||||
public abstract string Name { get; }
|
||||
|
||||
|
Reference in New Issue
Block a user