Making commandPermission check use Count not Null
This commit is contained in:
parent
ffd6e6fd61
commit
f2ec518b58
@ -33,7 +33,7 @@ namespace ChaosBot.Discord.PreConditions
|
||||
}
|
||||
|
||||
// If we can find a permission
|
||||
if(commandPermissions != null)
|
||||
if(commandPermissions.Count >= 1)
|
||||
{
|
||||
// Loop through all permissions
|
||||
foreach (CommandPermission perm in commandPermissions)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user