Changed whitelist to its own type

This commit is contained in:
Brett Hewitson 2021-12-19 11:23:17 +10:00
parent 8c1908310e
commit a74bc2dc78
5 changed files with 12 additions and 5 deletions

View file

@ -1,5 +1,4 @@
using ServerManagerTool.DiscordBot.Enums;
using System.Collections.Generic;
namespace ServerManagerTool.DiscordBot.Models
{
@ -19,6 +18,6 @@ namespace ServerManagerTool.DiscordBot.Models
public bool AllowAllBots { get; set; } = false;
public IEnumerable<string> DiscordBotWhitelists { get; set; } = new List<string>();
public DiscordBotWhitelist DiscordBotWhitelist { get; set; } = new DiscordBotWhitelist();
}
}

View file

@ -0,0 +1,8 @@
using System.Collections.Generic;
namespace ServerManagerTool.DiscordBot.Models
{
public class DiscordBotWhitelist : List<string>
{
}
}