Changed a few things around

This commit is contained in:
Chris Darnell committed 2021-05-10 06:15:23 -07:00
1 parent 66e52c4f7f
commit e694fc494b
4 files changed
+15 -142

No files matched your search

+5 -1
View File
@@ -46,7 +46,11 @@ namespace StarsiegeBot
{
string gId = e.Guild.Id.ToString();
bool allowedToPost = false;
if (BotSettings.GuildSettings[gId].DenyChannels.Contains("all"))
if (BotSettings.GuildSettings[gId].DenyChannels is null)
{
allowedToPost = true;
}
else if (BotSettings.GuildSettings[gId].DenyChannels.Contains("all"))
{
if (BotSettings.GuildSettings[gId].AllowChannels.Contains(e.Channel.Id.ToString()))
{