= Saving allowed roles per guild

This commit is contained in:
Matthew Cech
2019-05-06 00:21:17 -07:00
parent 380fdbc605
commit 5eddc4645e
9 changed files with 110 additions and 16 deletions
+2 -2
View File
@@ -25,13 +25,13 @@ public class CommandGuildRoleAllowed extends Command
for(int i = 0; i < roles.length; i++)
{
role = roles[i].trim();
if(guild.allowedRole.contains(role))
if(guild.roleList.contains(role))
{
res.Call(LocStrings.Stub("GuildRoleAllowedDuplicate"));
}
else
{
guild.allowedRole.add(role);
guild.roleList.add(role);
res.Call(String.format(LocStrings.Stub("GuildRoleAllowedSuccess"), role));
}
}