Este es el código que he escrito hasta ahora. Funciona, pero parece que entiendo cómo tomar el archivo adjunto de la publicación e incluirlo en el mensaje de copiar/pegar. ¿Sería algo así como let attachment = context.params.event.attachments; ¿trabajar?
// 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: `<#${channel}> <@${member}> **| ${msg}**` }); }