title: How can I fix this issue where slash commands do not respond to the command but make a new message?
body: <p>I have been trying to implement slash commands into my bot that I am making with Autocode. Previously, the commands were working, though they wouldn't link to the trigger message. However, as shown in the following video, it would do so for the &quot;bye&quot; message. At this point, I took the code that I though caused it, and implemented it into the slash commands, however, now they don't show.</p>
  <p><a href="https://youtu.be/HYCm4kfC7T4" rel="nofollow noreferrer">https://youtu.be/HYCm4kfC7T4</a></p>
  <p>The code I tried to run</p>
  <pre><code>const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
  
  await lib.discord.channels['@0.3.0'].messages.create({
    channel_id: context.params.event.channel_id,
    content: `Pong!`,
    message_reference: {
      message_id: context.params.event.id
    }
  });
  </code></pre>
  <p>The code I got the idea from:</p>
  <pre><code>const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
  
  // Only respond to messages containing &quot;hi&quot;, &quot;hey&quot;, &quot;hello&quot;, or &quot;sup&quot;
  if (context.params.event.content.match(/hi|hey|hello|sup|good morning|good afternoon/i)) {
    let messageContent = context.params.event.content.match(/hi|hey|hello|sup|good morning|good afternoon/i);
  
    await lib.discord.channels['@0.3.0'].messages.create({
      channel_id: context.params.event.channel_id,
      content: `${messageContent[0]} to you too `,
      message_reference: {
        message_id: context.params.event.id
      }
    });
  }
  // Only respond to messages containing &quot;cya&quot;, &quot;gtg&quot;, or &quot;bye&quot;
  if (context.params.event.content.match(/cya|gtg|bye/i)) {
    await lib.discord.channels['@0.3.0'].messages.create({
      channel_id: context.params.event.channel_id,
      content: 'See you later, alligator ',
      message_reference: {
        message_id: context.params.event.id
      }
    });
  }
  </code></pre>
  <p>The error:</p>
  <pre><code>{
    &quot;error&quot;: {
      &quot;message&quot;: &quot;Invalid Form Body: code 50035: (discord/channels@0.3.0/messages/create)&quot;,
      &quot;details&quot;: {
        &quot;message_reference&quot;: {
          &quot;_errors&quot;: [
            {
              &quot;code&quot;: &quot;REPLIES_UNKNOWN_MESSAGE&quot;,
              &quot;message&quot;: &quot;Unknown message&quot;
            }
          ]
        }
      },
      &quot;stack&quot;: &quot;Error: Invalid Form Body: code 50035: (discord/channels@0.3.0/messages/create)\n    at IncomingMessage.&lt;anonymous&gt; (/opt/node_modules/lib/lib/request.js:116:21)\n    at IncomingMessage.emit (events.js:412:35)\n    at endReadableNT (internal/streams/readable.js:1334:12)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)&quot;
    }
  }
  Error completing request
  </code></pre>
  <p>I hope this is enough information! Thanks!</p>