When your bot joins a new server, this snippet makes it send a message to the system channel of the new server. Use it to introduce your bot and more!
// authenticates you with the API standard library
// type `await lib.` to display API autocomplete
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.channels['@0.2.0'].messages.create({
channel_id: `${context.params.event.system_channel_id}`,
content: `Hey there! I'm a bot and I just joined your server!`
});