title: My discord bot that can copy/paste messages from one channel to another, how do I make it copy the attachment as well?
body: <p>This is the code I have written so far. It works but I can seem to understand how to grab the attachment of the post and include it in the copy/pasted message. Would something like <code>let attachment = context.params.event.attachments;</code> work?</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>// authenticates you with the API standard library
  // type `await lib.` to display API autocomplete
  const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
  
  let channel = context.params.event.channel_id;
  let msg = context.params.event.content;
  let member = context.params.event.author.id;
  if (context.params.event.content.startsWith(`Alerts`)) {
    await lib.discord.channels['@0.3.0'].messages.create({
      channel_id: `948355963495272458`,
      content: `&lt;#${channel}&gt; &lt;@${member}&gt; **| ${msg}**`
    });
    
  }</code></pre>
  </div>
  </div>
  </p>