title: Add channel to category by name
body: <pre><code>    var server = message.guild;
      for (var i = 0; i &lt; server.channels.array().length; i++) {
          server.channels.array()[i].delete();
      }
  
      server.createChannel("Text Channels", "category");
      server.createChannel('general', "text");
  </code></pre>
  
  <p>I am trying to make the text channel 'general` go into the category 'Text Channels'</p>
  
  <p><strong>All the solutions</strong> I have found <strong>rely on you knowing the categories id</strong>. I was wondering <strong>if there is a way I could get the category id</strong>, or else move general into "Text Channels" simply by its name.</p>
  
  <p>NOTE:: Currently I am thinking of something along these lines to get the category id:</p>
  
  <pre><code>var categoryID = server.categories.find("name","Text Channels");
  </code></pre>
  
  <p>Then to use </p>
  
  <pre><code>server.channels.find("name","general").setParent(categoryID);
  </code></pre>