Making commandPermission check use Count not Null

This commit is contained in:
Sean "Solao Bajiuik" Stoves 2020-08-05 17:33:37 -04:00
parent ffd6e6fd61
commit f2ec518b58

View File

@ -33,7 +33,7 @@ namespace ChaosBot.Discord.PreConditions
} }
// If we can find a permission // If we can find a permission
if(commandPermissions != null) if(commandPermissions.Count >= 1)
{ {
// Loop through all permissions // Loop through all permissions
foreach (CommandPermission perm in commandPermissions) foreach (CommandPermission perm in commandPermissions)