title: How to make my Discord.js bot say something when joning a Discord guild?
body: <p>I want to make my bot send a welcome message when he joins a Guild, but i don't know how, tried to do something but it didn't worked. How can I do that?</p>
  
  <p>Code that not worked:</p>
  
  <pre><code>client.on('guildCreate', guild =&gt; {
      message.channel.send('¡Hola! Soy el bot de Pepelui85, mi prefix aquí es "*" y mis comandos son: *pc y *llora.');
      message.channel.send('¿Encontraste algun bug? Reportalo en el canal desarrollo de mi servidor de Discord.');
      message.channel.send('https://discord.gg/3taae9');
  });
  </code></pre>