- 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:
Kwoth
2021-07-04 23:48:17 +02:00
parent 4c0c3c9228
commit fd35d3a836
5 changed files with 3 additions and 6 deletions

View File

@@ -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; }