An example of how to send an Autocode-hosted image to Discord via a message. This example expects the image to be saved as `www/welcome.png` in Autocode.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const fs = require('fs');
const { channel_id } = context.params.event
await lib.discord.channels['@0.2.0'].messages.create({
channel_id, content: ``,
filename: 'welcome.png',
file: fs.readFileSync(`www/welcome.png`),
});