title: Discord Bot can't find channel by name or id
body: <p>I'm trying to make a discord bot with node.js
  I want to post message only in specific channel
  I tried to do that to save a channel in a variable but that doesn't work :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>const Discord = require('discord.js');
  const fs = require("fs");
  
  var bot = new Discord.Client();
  var myToken = 'NDQ2OTQ1...................................................';
  //client.msg = require ("./char.json");
  
  var prefix = ("/");
  
  //let preset = JSON.parse(fs.readFileSync('preset.json', 'utf8')); // This calls the JSON file.
  
  
  var offTopic = bot.channels.find("id","448400100591403024"); //.get("448392061415325697");
  console.log(offTopic);</code></pre>
  </div>
  </div>
  </p>
  
  <p>Whenever i run my bot it returns 'null' with find and 'undefined' with get.
  I search for help on internet and even if i follow this post my code doesn't work : <a href="https://stackoverflow.com/questions/41515134/discord-bot-cant-get-channel-by-name#41515544">Discord Bot Can&#39;t Get Channel by Name</a>
  I also tried to find my channel by name but i got 'undefined' too :/</p>