Changed a few things around
This commit is contained in:
1 parent
66e52c4f7f
commit
e694fc494b
4 files changed
+15
-142
No files matched your search
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user