Exemplo n.º 1
0
 public void RemoveSelfObtainableRole(ulong id)
 {
     if (SelfObtainableRoles.Contains(id))
     {
         SelfObtainableRoles.Remove(id);
     }
     else
     {
         throw new Exception("Role is not on the list.");
     }
 }
Exemplo n.º 2
0
 public void AddSelfObtainableRole(ulong id)
 {
     if (SelfObtainableRoles.Contains(id))
     {
         throw new Exception("Role is already on the list");
     }
     else
     {
         SelfObtainableRoles.Add(id);
     }
 }
Exemplo n.º 3
0
 public bool RoleIdIsInObtainableRolesList(ulong id)
 => SelfObtainableRoles.Contains(id);