title: Bot issues with function bot.reply (Discord)
body: <p>I'm trying to make a discord bot with the command <code>!!flip</code>. I tried this but got this error :</p>
  
  <p><img src="https://cdn.discordapp.com/attachments/362440755350077453/363233799104102401/unknown.png" alt="https://cdn.discordapp.com/attachments/362440755350077453/363233799104102401/unknown.png"></p>
  
  <p>So, I then tried <code>bot.channel.sendmessage</code> and got this message :</p>
  
  <p><img src="https://cdn.discordapp.com/attachments/362440755350077453/363233799104102401/unknown.png" alt="https://cdn.discordapp.com/attachments/362440755350077453/363191581521739776/unknown.png"></p>
  
  <p>Here is my code :</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-js lang-js prettyprint-override"><code>if (message.content === "!!flip") {
      var result = Math.floor((Math.random() * 2) + 1);
      if (result == 1) {
          bot.reply(message, "The coin landed on heads");
      } else if (result == 2) {
          bot.reply(message, "The coin landed on tails");
      }
  }</code></pre>
  </div>
  </div>
  </p>