title: how to delete a message not a channel discord.js
body: <p>I have tried looking for how to delete a message by id and I get the id by getting the channel and going through the json object and take the last message id and want to delete it but when I run it just deletes the entire channel</p>
  <p>This is what I have for the code</p>
  <pre><code>let x = client.channels.cache.get('830341462070919168')
  let lastMessageID = x.lastMessageID;
  
  client.channels.cache.get('830341462070919168').fetch(lastMessageID).then(msg =&gt; msg.delete());
  
  client.channels.cache.get('830341462070919168').send('**UPDATE!!**\nList of Photo Shoots to be done\n```1. Nick\n2. Drew```');
  </code></pre>
  <p>And I saw on another form that I could try this</p>
  <pre><code>client.channels.cache.get('830341462070919168').fetch(lastMessageID).then(async msg =&gt; {
      await client.channels.cache.get('830341462070919168').send(&quot;**UPDATE!!**\nList of Photo Shoots to be done\n```1. Nick\n2. Drew```&quot;);
      if (msg) msg.delete();
  });
  </code></pre>
  <p>And it does the same thing as what I have above</p>
  <p>All I want it to do is just get the last message id and delete that message by the id and nothing else and then update with a new message that I will have loop through all the sign ups and then put that into a message</p>
  <p>output:
  UPDATE!!
  Lise of Photo Shoots to be done</p>
  <pre><code>1. {name}
  2. {name}
  etc..
  </code></pre>