title: Make discord bot (js) echo message, but removing the command from the message?
body: <p>So what I want in the end is this:</p>
  
  <p>user: "*cmd hello"</p>
  
  <p>bot: "hello"</p>
  
  <p>I tried replacing it, searched different ways to edit it, but nothing worked so far.</p>
  
  <pre><code>    if (receivedMessage.content.includes("*cmd")) {
      receivedMessage.content.replace('*cmd', ' ');
      receivedMessage.channel.send(receivedMessage.content);
      receivedMessage.channel.send("s/*cmd/-");
  }    
  </code></pre>
  
  <p>(^found out that you can edit stuff by typing s/oldtext/newtext, but sadly it doesn't seem to work with the bot. Replacing didn't work, either.)</p>
  
  <pre><code>    if (receivedMessage.content.includes("*cmd")) {
      receivedMessage.channel.send(receivedMessage.content.text(text.replace('*cmd', ' '))); 
  }    
  </code></pre>
  
  <p>(I tried more stuff, but I deleted it when it didn't work, and I don't think it'd help, anyway)</p>
  
  <p>I'd really appreciate some help! </p>