title: Sending a message the first channel with discord.js
body: <p>I've seen a lot of bots that have a greeting message when they join. Its usually sent to the first channel of the server.</p>
  
  <p>For example:</p>
  
  <p><em>bot joins the guild</em></p>
  
  <p>Bot: Hey! Thanks for inviting me!</p>
  
  <p>The code i have right now is really simple:</p>
  
  <pre><code>client.on("guildCreate", guild =&gt; {
      the code goes here
  });
  </code></pre>
  
  <p>I dont know how to send a message to a random (first) channel though.
  If anyone could please tell me how the other bots do it I would be really greatful.</p>