1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-09-03 08:07:19 +00:00

Make tags actually persist through restarts

This commit is contained in:
Deukhoofd 2018-11-05 15:40:17 +01:00
parent dd177fa012
commit 2e77b6d563
No known key found for this signature in database
GPG Key ID: B4C087AC81641654

View File

@ -16,7 +16,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler
public class ServerTags public class ServerTags
{ {
private readonly Dictionary<string, string> Tags = new Dictionary<string, string>(); private readonly Dictionary<string, string> Tags = new Dictionary<string, string>();
private ulong ServerId { get; set; } private ulong ServerId { get; }
public ServerTags(ulong serverId) public ServerTags(ulong serverId)
{ {
@ -24,6 +24,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler
} }
public ServerTags(ulong serverId, Dictionary<string, string> tags) public ServerTags(ulong serverId, Dictionary<string, string> tags)
:this(serverId)
{ {
Tags = tags; Tags = tags;
} }