Sends a message to log channel when a Someone joins the server but in embed
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
await lib.discord.channels['@0.2.0'].messages.create({
channel_id: `${process.env.LOG_CHANNEL_ID}`,
content: ``,
tts: false,
embed: {
type: 'rich',
title: 'Member join',
description: `**${context.params.event.user.username}#${context.params.event.user.discriminator}** just joined the server. **Welcome**!`,
color: 0x00baff,
thumbnail: {
url: `https://cdn.discordapp.com/avatars/${context.params.event.user.id}/${context.params.event.user.avatar}.png`,
},
},
});