title: Discord.js Delete Single Message
body: <p>I am currently working on creating a Discord bot using <a href="https://discord.js.org/" rel="noreferrer">Discord.js</a>, and I want to have a command that you can tell it <code>||say Hello</code> or something and it will delete your comment, then say what you told it to.</p>
  
  <p>My current code is</p>
  
  <pre><code>client.on('message', message =&gt; {
     if (message.content.startsWith("||say ")) {
        message.delete(1000); //Supposed to delete message
        message.channel.send(message.content.slice(5, message.content.length));
     }
  });
  </code></pre>
  
  <p>But this is not working.</p>